/*! v:586016 b:default c:loaders/adfox/header-bidding */!function(e){function t(t){for(var r,o,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)o=i[s],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&c.push(n[o][0]),n[o]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(d&&d(t);c.length;)c.shift()()}var r={},n={48:0};function o(e){return i.p+""+{38:"c5cbb1d2128d57b74fc6"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.lv=i.lv||{},i.lv["json"]=JSON,i.preloadChunk=function(e,t){if(!r[e]){var n=document.createElement("link");n.charset="utf-8",i.nc&&n.setAttribute("nonce",i.nc),n.rel="preload",n.as="script",n.href=o(e),0!==n.href.indexOf(window.location.origin+"/")&&(n.crossOrigin="anonymous"),t&&n.setAttribute("importance",t),document.head.appendChild(n)}},i.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=o(e),0!==c.src.indexOf(window.location.origin+"/")&&(c.crossOrigin="anonymous");var d=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(u);var r=n[e];if(0!==r){if(r){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",d.name="ChunkLoadError",d.type=o,d.request=i,r[1](d)}n[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,c.setAttribute("importance","high"),document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(undefined,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://yastatic.net/partner-code-bundles/586016/",i.oe=function(e){throw console.error(e),e};var a=window["pcodeJsonp5860169aj01L0qzc"]=window["pcodeJsonp5860169aj01L0qzc"]||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var d=s;i(i.s=538)}([function(e,t,r){"use strict";var n,o,i,a=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BidError=t.AdfoxBid=t.BannerBid=t.isBannerTypeValid=t.NativeBid=t.SucceededBid=t.AbstractBid=t.BannerSource=t.BannerType=void 0,function(e){e["HTML"]="html",e["JS"]="js",e["VAST"]="vast"}(o=t.BannerType||(t.BannerType={})),function(e){e["CODE"]="code",e["URL"]="url"}(i=t.BannerSource||(t.BannerSource={}));var s=function(){function e(e,t,r){this.adapterName=e,this.containerId=t,this.campaignId=r}return e.prototype.setRequestDuration=function(e){e&&(this.requestDuration=(new Date).getTime()-e.getTime())},e}();t.AbstractBid=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.setCost=function(e){this.cost=new(r(80).Cost)(e)},t}(s);t.SucceededBid=c;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(c);t.NativeBid=d;t.isBannerTypeValid=function(e){var t=e&&String(e).toLowerCase();return Object.keys(o).map((function(e){return o[e]})).indexOf(t)>=0};var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.setBanner=function(e,t){var n=t.type,o=t.sourceType;this.banner=this.banner||{},this.banner={src:o===i.URL?(0,r(169).replaceProtocolToHTTPS)(e):e,type:n,sourceType:o}},t.prototype.setSize=function(e,t){this.size={width:e,height:t}},t}(c);t.BannerBid=u;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(c);t.AdfoxBid=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(s);t.BidError=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=void 0;t.forEach=function(e,t,r){for(var n=0;n<e.length;n++)t.call(r,e[n],n,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e||"Function"===(0,r(42).getInternalClass)(e)}},,,function(e,t,r){"use strict";var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.recreateBidManager=t.bidManager=t.BidManager=void 0;var o=function(e){return(0,r(381).deepCopy)(e)},i=[],a=[],s=[],c={},d={},u=function(){function e(){this.adfoxCallbacks=[],this.isReady=!0}return e.prototype.getBid=function(e,t){return(0,r(60).find)(i,(function(r){return r.containerId===e&&r.campaignId===t}))},e.prototype.getAllBids=function(e){var t=[];return(0,r(1).forEach)(i,(function(n){n.containerId===e&&t.push((0,r(56).buildBidForAdfox)(n))})),t},e.prototype.getBidsForAdfoxByContainerId=function(e,t){d[e]?d[e].waitBids().then((function(e){var n=(0,r(11).map)(e,(function(e){return(0,r(56).buildBidForAdfox)(e)}));t(n)})):t(this.getAllBids(e))},e.prototype.getBidsReceived=function(){return o(i)},e.prototype.getLastBidsReceived=function(){return(0,r(541).prepareLastBidsReceived)(a)},e.prototype.getRawLastBids=function(){return o(a)},e.prototype.getCurrentBidsReceived=function(){return o(s)},e.prototype.getBiddersRequested=function(){return o(r(64).biddersStorage.getBiddersRequested())},e.prototype.addUserCallback=function(e){this.userCallback=e},e.prototype.addAdfoxCallback=function(e){this.isReady?e():this.pushAdfoxCallback(e)},e.prototype.pushAdfoxCallback=function(e){this.adfoxCallbacks.push(e)},e.prototype.addBidResponse=function(e){var t=this;Promise.resolve().then((function(){t.addReceivedBid(e),(0,r(28).consoleLog)("Added new ".concat(e instanceof r(0).BidError?"error":"bid"," from ").concat(e.adapterName),e)}))},e.prototype.addReceivedBid=function(e){s.push(e);var t=e.containerId,r=d[t];r&&r.resolveBid(e)},e.prototype.resolveBids=function(e){var t=this;a=e,(0,r(1).forEach)(e,(function(e){t.removeOldBid(s,e),t.removeOldBid(i,e)})),i.push.apply(i,e),0===s.length&&(r(64).biddersStorage.onBidsRecieved(),this.executeCallback())},e.prototype.removeOldBid=function(e,t){var n=(0,r(69).indexOf)(e,t,0,(function(e,t){return t.adapterName===e.adapterName&&t.containerId===e.containerId}));n>-1&&e.splice(n,1)},e.prototype.mergeBids=function(){this.resolveBids(n([],s,!0))},e.prototype.onCallingBidsStarted=function(){this.startOfCallingBids=new Date},e.prototype.onCallingBidsEnded=function(){},e.prototype.createNewBid=function(e){var t=e.type,n=e.adapterName,o=e.containerId,i=e.placementId;return r(141).BidFactory.getBid({type:t,adapterName:n,containerId:o,campaignId:this.getCampaignIdByName(n),requestStartTime:this.startOfCallingBids,placementId:i})},e.prototype.createNewBannerBid=function(e,t){return this.createNewBid({type:r(141).BidType.banner,adapterName:e,containerId:t})},e.prototype.createNewAdfoxBid=function(e,t){return this.createNewBid({type:r(141).BidType.adfox,adapterName:e,containerId:t})},e.prototype.createNewNativeBid=function(e,t){return this.createNewBid({type:r(141).BidType["native"],adapterName:e,containerId:t})},e.prototype.createNewBidError=function(e,t){return this.createNewBid({type:r(141).BidType.error,adapterName:e,containerId:t})},e.prototype.executeCallback=function(){for(;this.adfoxCallbacks.length>0;)this.adfoxCallbacks.shift()();(0,r(3).isFunction)(this.userCallback)&&this.userCallback(this.getLastBidsReceived()),(0,r(180).stopAuction)()},e.prototype.setBiddersMap=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[(0,r(140).isAdfoxBidder)(t)?t:t.toLowerCase()]=Number(e[t]));return c},e.prototype.getCampaignIdByName=function(e){return c[e]},e.prototype.addAdUnitBox=function(e,t){d[e]=t},e.prototype.getAdUnitBox=function(e){return d[e]||null},e}();t.BidManager=u,t.bidManager=new u;t.recreateBidManager=function(){return i=[],s=[],c={},d={},t.bidManager=new u,t.bidManager}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ADAPTER_NAMES=void 0,function(e){e["CRITEO"]="criteo",e["SAPE"]="sape",e["ADMIXER"]="admixer",e["GNEZDO"]="gnezdo",e["ASTRALAB"]="astralab",e["SOLOWAY"]="adriver",e["HPMD"]="hpmd",e["BUZZOOLA"]="buzzoola",e["MAIL"]="mytarget",e["FACEBOOK"]="facebook",e["BETWEEN_DIGITAL"]="betweendigital",e["AIO"]="aio",e["GET_INTENT"]="getintent",e["TINKOFF"]="tinkoff",e["VIDEONOW"]="videonow",e["RELAP"]="relap",e["RTBHOUSE"]="rtbhouse",e["PLADFORM"]="pladform",e["ADFOX"]="adfox",e["FOTOSTRANA"]="fotostrana",e["ALFASENSE"]="alfasense",e["MGID"]="mgid",e["HYBRID"]="hybrid",e["DGT_SSP"]="dgt_ssp",e["ADSPEND"]="adspend",e["QVANT_DSP"]="qvant_dsp",e["MEDIATODAY"]="mediatoday",e["REDLLAMA"]="redllama",e["ADTELLIGENT"]="adtelligent",e["OTM"]="otm",e["SEGMENTO"]="segmento",e["CLIO"]="clio",e["BIDVOL"]="bidvol",e["MTS"]="mts",e["MIT"]="mit",e["KADAM"]="kadam",e["TEST"]="test"}(t.ADAPTER_NAMES||(t.ADAPTER_NAMES={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PARSE_LINK_ELEMENT=void 0,t.PARSE_LINK_ELEMENT=document.createElement("a")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArray=void 0;var n=(0,r(27).getNativeMethod)(Array,"isArray");t.isArray=Boolean(n)?function(e){return n.call(Array,e)}:function(e){return"Array"===(0,r(42).getInternalClass)(e)}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;t.map=function(e,t,r){for(var n=new Array(e.length),o=0;o<e.length;o++)n[o]=t.call(r,e[o],o,e);return n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adapterManager=t.AdapterManager=void 0;var n=function(){function e(e){this.bidManager=e,this.bidderRegistry={},this.syncPixels={},this.usedSyncPixels={},this.occupateQueue=[],r(64).biddersStorage.reset()}return e.prototype.getBidderRegistry=function(){return this.bidderRegistry},e.prototype.registerBidAdapter=function(e,t){this.bidderRegistry[t]=e},e.prototype.onBidsRecieved=function(){r(64).biddersStorage.onBidsRecieved()},e.prototype.waitForBidsReceived=function(){if(0===r(64).biddersStorage.biddersRequested.length)return Promise.resolve(!0);var e,t=new Promise((function(t){return e=t}));return r(64).biddersStorage.onBidsReceivedCallbacks.push((function(){return e(!0)})),t},e.prototype.free=function(e){if(this.occupator===e){this.occupator=void 0;var t=this.occupateQueue.pop();t&&t()}},e.prototype.occupy=function(e){var t=this;if(this.occupator){var r,n=new Promise((function(e){return r=e}));return this.occupateQueue.push((function(){t.occupator=e,r(!0)})),n}return this.occupator=e,Promise.resolve(!0)},e.prototype.callBids=function(e,t,n){var o=this;if(this.occupator!==n)return(0,r(28).consoleLog)("AdapterManager is occupated"),!1;this.bidManager.onCallingBidsStarted();var i,a=(0,r(56).getBidderNames)(e);return(0,r(1).forEach)(a,(function(n,s){var c=(0,r(140).isAdfoxBidder)(n),d=c?r(7).ADAPTER_NAMES.ADFOX:n,u=o.bidderRegistry[d];if(void 0!==u){var p=(0,r(56).getBids)(n,e);if(p&&0!==p.length){var f={bidderName:n,bids:p,timeout:t};(0,r(28).consoleLog)("Calling bidder = ".concat(n)),o.addRequestedBidder(f);var l=!1;c&&(void 0===i&&(i=(0,r(382).findLastIndex)(a,r(140).isAdfoxBidder)),l=i!==s),u.callBids(f,l),o.sendBidderPixels(n)}else(0,r(28).consoleWarn)("No bids were provided = ".concat(n))}else(0,r(28).consoleWarn)("There is no adapter with name = ".concat(n))})),0===this.getBiddersRequested().length&&this.bidManager.onCallingBidsEnded(),!0},e.prototype.getBiddersRequested=function(){return r(64).biddersStorage.getBiddersRequested()},e.prototype.addRequestedBidder=function(e){r(64).biddersStorage.biddersRequested.push(e)},e.prototype.setSyncPixels=function(e){var t=this;(0,r(9).isArray)(e)&&(0,r(1).forEach)(e,(function(e){var n=e.bidder,o=e.pixels;if((0,r(15).isString)(n)&&o){var i=n.toLowerCase();t.syncPixels[i]=o}}))},e.prototype.sendBidderPixels=function(e){var t=this,n=this.syncPixels[e];(0,r(9).isArray)(n)&&(0,r(1).forEach)(n,(function(e){t.usedSyncPixels[e]||((0,r(145).report)(e),t.usedSyncPixels[e]=!0)}))},e}();t.AdapterManager=n,t.adapterManager=new n(r(6).bidManager);var o=r(545);(0,r(1).forEach)(o.keys(),o)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;t.filter=function(e,t,r){for(var n=[],o=0;o<e.length;o++){var i=e[o];t.call(r,i,o,e)&&n.push(i)}return n}},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdapterForNew=void 0;var i=function(){function e(e){var t=e.url,r=e.name,n=e.bannerType,o=e.bidManager,i=e.sendTargetRef,a=void 0!==i&&i;this.containers=[],this.containerIds=[],this.publisherTagUrl="https://".concat(t),this.name=r,this.bannerType=n,this.bidManager=o,this.sendTargetRef=a}return e.prototype.callBids=function(t){var n=this,o=e.prepareRequestData(t,(function(e,t){n.assignAdditionalParams(e,t)}));this.containers=(0,r(13).filter)(this.containers,(function(e){return(0,r(34).every)(o.places,(function(t){return t.id!==e.id}))})).concat(o.places),this.saveContainerIds(o),this.sendPost(o,t)},e.prototype.assignAdditionalParams=function(e,t){var i=t.additional;if(n(e,o(o({},e),i)),this.sendTargetRef||t.sendTargetRef){var a=(0,r(76).getTargetRef)();e.targetRef=a.substr(0,512)}},e.prototype.sendPost=function(e,t){var n=this,o=t.timeout,i=t.bids;this.log("HB_ADAPTER_SEND"),new(r(181).XhrForAdapter)({publisherTagUrl:this.publisherTagUrl,data:e,timeout:o,callbacks:{onResponse:function(e){return n.onResponse(e,i)},onError:function(e,t){n.log("HB_ADAPTER_REQUEST_ERROR",{status:t}),n.onError(e,i,t)},onTimeout:function(){return n.onTimeout(i)}}}).sendXhr()},e.prototype.onResponse=function(e,t){try{var n=r.lv["json"].parse(e);this.processResponse(n,t)}catch(e){this.log("HB_ADAPTER_PARSE_ERROR"),this.onError(e.message,t,r(21).ERRORS.INVALID_RESPONSE.code)}},e.prototype.onError=function(e,t,n){(0,r(28).consoleWarn)("Error ".concat(e," from ").concat(this.name)),this.createErrorBids(t,n)},e.prototype.onTimeout=function(e){this.log("HB_ADAPTER_REQUEST_TIMEOUT"),(0,r(28).consoleWarn)("Timeout from ".concat(this.name)),this.createErrorBids(e,r(21).ERRORS.TIMEOUT.code)},e.prototype.processResponse=function(t,n){e.isSuccessResponse(t)&&t.bids.length>0?this.processSuccessResponse(t,n):e.isErrorResponse(t)?this.createErrorBids(n,r(21).ERRORS.INVALID_DATA.code):this.createErrorBids(n,r(21).ERRORS.NO_RESPONSE.code)},e.isSuccessResponse=function(e){return(0,r(9).isArray)(e.bids)},e.isErrorResponse=function(e){return Boolean(e.error)},e.prototype.createResponseBids=function(e){var t=this;(0,r(1).forEach)(e,(function(e){var n=t.bidManager.createNewBannerBid(t.name,e.id);if(void 0!==e.size){var o=e.size,i=o.width,a=o.height;n.setSize(i,a)}var s=(0,r(0).isBannerTypeValid)(e.codeType)?e.codeType:t.bannerType;e.displayUrl?n.setBanner(e.displayUrl,{sourceType:r(0).BannerSource.URL,type:s}):e.displayCode&&n.setBanner(e.displayCode,{sourceType:r(0).BannerSource.CODE,type:s}),n.setCost({price:e.cpm,unit:r(80).Units["1-TH"]}),n.placementId=e.placementId,t.bidManager.addBidResponse(n)}))},e.prototype.createErrorBids=function(e,t){var n=this;(0,r(1).forEach)(e,(function(e){var o=n.bidManager.createNewBidError(n.name,e.code);o.placementId=(0,r(56).getPlacementId)(e.params),o.errorCode=t,n.bidManager.addBidResponse(o)}))},e.prototype.processSuccessResponse=function(t,n){if(e.validateSuccessResponse(t)){var i=(0,r(11).map)(t.bids,(function(e){var t=(0,r(60).find)(n,(function(t){return t.code===e.id})),i=o({},e);return t&&(i.placementId=t.params.placementId,"combo"===t.params.codeType&&"inpage"===e.codeType&&(i.codeType=r(0).BannerType.VAST),("inpage"===t.params.codeType||(0,r(46).some)(r(179).SupportedAdBreakTypes,(function(e){return e===t.params.codeType})))&&(i.codeType=r(0).BannerType.VAST)),i}));if(this.areAllIdsCorrect(i))if(this.areAllSizesCorrect(i))if(this.areAllTypesMatch(i,n))if(i.length!==n.length){var a=e.divideOnErrorsAndBids(i,n),s=a.errorBids,c=a.successBids;this.createResponseBids(c),this.createErrorBids(s,r(21).ERRORS.NO_RESPONSE.code)}else this.createResponseBids(i);else this.createErrorBids(n,r(21).ERRORS.INVALID_CODE_TYPE.code);else this.createErrorBids(n,r(21).ERRORS.INVALID_DATA.code);else this.createErrorBids(n,r(21).ERRORS.ID_UNCORRECT.code)}else this.createErrorBids(n,r(21).ERRORS.INVALID_DATA.code)},e.prototype.log=function(e,t){(0,r(25).errorStrict)(e,o(o({},t),{bidder:this.name}))},e.prototype.saveContainerIds=function(e){var t=this;(0,r(1).forEach)(e.places,(function(e){var r=e.id;return t.containerIds.push(r)}))},e.prototype.areAllIdsCorrect=function(e){var t=this,n=(0,r(34).every)(e,(function(e){var r=e.id;return t.containerIds.indexOf(r)>=0}));return this.containerIds=(0,r(177).difference)(this.containerIds,(0,r(11).map)(e,(function(e){return e.id}))),n},e.prototype.areAllSizesCorrect=function(t){return(0,r(34).every)(t,(function(t){return t.codeType===r(0).BannerType.VAST||e.isSizeWellDefined(t.size)}))},e.prototype.areAllTypesMatch=function(e,t){return(0,r(34).every)(e,(function(e){var n=(0,r(60).find)(t,(function(t){return t.code===e.id}));return!(n&&"combo"===n.params.codeType&&!e.codeType)}))},e.divideOnErrorsAndBids=function(e,t){var n=[],o=[],i=(0,r(11).map)(e,(function(e){return e.id}));return(0,r(1).forEach)(t,(function(t){var r=i.indexOf(t.code);r>=0?o.push(e[r]):n.push(t)})),{errorBids:n,successBids:o}},e.prepareRequestData=function(e,t){return{places:(0,r(11).map)(e.bids,(function(e){var r={id:e.code,placementId:"".concat(e.params.placementId||"")};return e.sizes&&(r.sizes=e.sizes),e.params.codeType&&(r.codeType=e.params.codeType),t&&t(r,e.params),r})),settings:{currency:"RUB",windowSize:(0,r(51).getWindowSize)()}}},e.validateSuccessResponse=function(e){var t=e.bids;return(0,r(9).isArray)(t)&&(0,r(34).every)(t,(function(e){return Boolean(e.id)&&(t=e.cpm,!isNaN(parseFloat(t))&&isFinite(t))&&Boolean(e.currency)&&(Boolean(e.displayUrl)||Boolean(e.displayCode));var t}))},e.isSizeWellDefined=function(e){return void 0!==e&&void 0!==e.width&&void 0!==e.height},e}();t.AdapterForNew=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=void 0,t.isString=function(e){return"string"==typeof e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtectedNames=t.rethrowAsync=t.protect=t.callSafe=void 0;function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("")}t.callSafe=function(e){try{return e()}catch(e){return}},t.protect=function(e,n,o,i){return function(){try{return n.apply(o||this,arguments)}catch(n){if((0,r(3).isFunction)(i)&&i(n),!0===n.preventProtect)throw n;t.protect.log(n,e)}}},t.rethrowAsync=function(e,r){setTimeout((function(){t.protect.log(e,r)}))},t.protect.log=function(e,t){console.log("LOG:"+t+":"+e)},t.protect.setTimeout=function(e,r,n,o){return window.setTimeout((0,t.protect)("timeout",e,n,o),r)};var o=function(){function e(){}return e.YaContextCallbacks=n("Ya.C","ontext._callbacks"),e.YaContextCallbacksCalls=n("Ya.C","ontext._callbacks_call"),e.AdvManager=n("A","dvManager"),e.AdvBlock=n("A","dvBlock"),e.RTB=n("R","TB"),e.Rtb=n("R","tb"),e.MetrikaAdtune=n("metrika_a","dtune"),e}();t.ProtectedNames=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScriptStringForSettingGlobalVars=t.ns=t.addAdfoxNamespace=void 0;t.addAdfoxNamespace=function(e){return e.Ya||(e.Ya={}),e.Ya.adfoxCode||(e.Ya.adfoxCode={}),e.Ya.adfoxCode},t.ns=(0,t.addAdfoxNamespace)(window);var n=function(){var e=Boolean(t.ns.xhrExperiment&&t.ns.xhrExperiment.isXhr),r=Boolean(t.ns.xhrExperiment&&t.ns.xhrExperiment.isControl);return'ns["xhrExperiment"] = {isXhr: '.concat(e,", isControl: ").concat(r,"};")};t.getScriptStringForSettingGlobalVars=function(e){var r=e.isXhr;return[";(function (w) {","var ns = (".concat(t.addAdfoxNamespace.toString(),")(w);"),'ns["isXhr"] = '.concat(r,";"),n(),"})(window);"].join("")}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forOwn=void 0,t.forOwn=function(e,t,n){for(var o in e)(0,r(53).hasOwnProperty)(e,o)&&t.call(n,e[o],o,e)}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS=void 0,t.ERRORS={NO_RESPONSE:{code:1,message:"No response from bidder"},INVALID_RESPONSE:{code:2,message:"Parse error"},TIMEOUT:{code:3,message:"Timeout"},HTTP_ERROR:{code:4,message:"Http error"},INVALID_DATA:{code:5,message:"Invalid data from user in inserted params"},WRONG_SETTINS:{code:6,message:"Wrong settings"},ID_UNCORRECT:{code:7,message:"Bidder sent uncorrect id"},NO_RESPONSE_WITHOUT_STATUS:{code:8,message:"Bidder sent valid error response without status"},INVALID_CODE_TYPE:{code:9,message:"Bidder send wrong bid codeType"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkNativeCode=void 0,t.checkNativeCode=function(e){if(!e||!e.toString)return!1;var t=e.toString();return/\[native code\]/.test(t)||/\/\* source code not available \*\//.test(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){var t=function(){var r;return t=function(){return r},r=e.apply(this,arguments)};return function(){return t.apply(this,arguments)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=void 0,t.isObject=function(e){var t=typeof e;return Boolean(e)&&("object"===t||"function"===t)}},function(e,t,r){"use strict";function n(e){r(229)((function(t){e(t.logger)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.traceLog=t.warn=t.error=t.errorStrict=void 0,t.errorStrict=function(e,t){n((function(r){r.errorStrict(e,t)}))},t.error=function(e,t,r,o){n((function(n){n.error(e,t,r,o)}))},t.warn=function(e,t,r,o){n((function(n){n.warn(e,t,r,o)}))},t.traceLog=function(e,t,r){n((function(n){n.traceLog(e,t,r)}))}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNativeMethod=void 0,t.getNativeMethod=function(e,t){var n=e[t];if(!(0,r(22).checkNativeCode)(n)){var o=n;try{delete e[t];var i=e[t];"function"==typeof i&&(n=i),e[t]=o}catch(e){}}return n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.consoleWarn=t.consoleLog=void 0;t.consoleLog=function(e,t){return void 0===t&&(t=""),!1};t.consoleWarn=function(e,t){return void 0===t&&(t=""),!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addEquals=t.cropEquals=t.utf8Decode=t.decodeUInt8String=t.decode=t.utf8Encode=t.encodeUInt8String=t.encode=void 0;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";function o(e){for(var t="",r=0;r<e.length;){var o=e.charCodeAt(r++),i=e.charCodeAt(r++),a=e.charCodeAt(r++),s=o>>2,c=(3&o)<<4|i>>4,d=(15&i)<<2|a>>6,u=63&a;isNaN(i)?d=u=64:isNaN(a)&&(u=64),t=t+n.charAt(s)+n.charAt(c)+n.charAt(d)+n.charAt(u)}return t}function i(e,t){e=e.replace(/\r\n/g,"\n");for(var r="",n=0;n<e.length;n++){var o=e.charCodeAt(n),i=void 0;if(o<128?i=String.fromCharCode(o):o>127&&o<2048?(i=String.fromCharCode(o>>6|192),i+=String.fromCharCode(63&o|128)):(i=String.fromCharCode(o>>12|224),i+=String.fromCharCode(o>>6&63|128),i+=String.fromCharCode(63&o|128)),r.length+i.length>t)break;r+=i}return r}function a(e){var t=[],r=0;for(e=e.replace(/[^A-Za-z0-9\-_=]/g,"");r<e.length;){var o=n.indexOf(e.charAt(r++)),i=n.indexOf(e.charAt(r++)),a=n.indexOf(e.charAt(r++)),s=n.indexOf(e.charAt(r++)),c=o<<2|i>>4,d=(15&i)<<4|a>>2,u=(3&a)<<6|s;t.push(String.fromCharCode(c)),64!==a&&t.push(String.fromCharCode(d)),64!==s&&t.push(String.fromCharCode(u))}return t.join("")}function s(e){for(var t=[],r=0;r<e.length;){var n=e.charCodeAt(r);if(n<128)t.push(String.fromCharCode(n)),r++;else if(n>191&&n<224){var o=e.charCodeAt(r+1);t.push(String.fromCharCode((31&n)<<6|63&o)),r+=2}else{o=e.charCodeAt(r+1);var i=e.charCodeAt(r+2);t.push(String.fromCharCode((15&n)<<12|(63&o)<<6|63&i)),r+=3}}return t.join("")}t.encode=function(e,t){return void 0===t&&(t=1e6),o(i(e,3*t/4|0))},t.encodeUInt8String=o,t.utf8Encode=i,t.decode=function(e){return s(a(e))},t.decodeUInt8String=a,t.utf8Decode=s,t.cropEquals=function(e){return e.replace(/=+$/,"")},t.addEquals=function(e){for(;e.length%4!=0;)e+="=";return e}},,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getPostProtocolIndex=t.addParamsToUrl=t.addParamToUrl=t.formatQueryString=t.getParamsFromUrl=t.parseQueryString=t.urlFromUrlObject=t.parseUrl=t.parseUrlUsingCache=void 0;t.parseUrlUsingCache=(0,r(75).memoize)((function(e){var t=i(e);return n({},t)}));var o=/^(android-app:|chrome-extension:)/;function i(e){r(8).PARSE_LINK_ELEMENT.href=e;var t=r(8).PARSE_LINK_ELEMENT.pathname||"";"/"!==t.charAt(0)&&(t="/".concat(t));var a=(r(8).PARSE_LINK_ELEMENT.search||"")+(r(8).PARSE_LINK_ELEMENT.hash||""),s=e.lastIndexOf(a),c=-1===s?e:e.slice(0,s);if(o.test(e)){var d=i(e.replace(o,"https:"));return r(8).PARSE_LINK_ELEMENT.href=e,n(n({},d),{originalPath:c,protocol:e.slice(0,e.indexOf(":")+1),href:r(8).PARSE_LINK_ELEMENT.href})}var u=r(8).PARSE_LINK_ELEMENT.protocol&&/^[a-z\-]+:/i.test(r(8).PARSE_LINK_ELEMENT.protocol)?r(8).PARSE_LINK_ELEMENT.protocol:"";return{originalPath:c,href:r(8).PARSE_LINK_ELEMENT.href,protocol:u,host:r(8).PARSE_LINK_ELEMENT.host,hostname:r(8).PARSE_LINK_ELEMENT.hostname,port:r(8).PARSE_LINK_ELEMENT.port,pathname:t,search:r(8).PARSE_LINK_ELEMENT.search,hash:r(8).PARSE_LINK_ELEMENT.hash}}function a(e,t){if(void 0===t&&(t=!1),t){var r=e.originalPath,n="/"===e.pathname&&"/"!==r[r.length-1];return"".concat(e.originalPath).concat(n?"/":"").concat(e.search).concat(e.hash)}var o="443"===e.port||"80"===e.port?e.hostname:e.host;return"".concat(e.protocol,"//").concat(o).concat(e.pathname).concat(e.search).concat(e.hash)}t.parseUrl=i,t.urlFromUrlObject=a;var s=function(e){try{return decodeURIComponent(e)}catch(t){return e}};function c(e){for(var t={},r=e.replace(/^[?#]+/,"").replace(/#.*$/,"").split("&"),n=0;n<r.length;n++){var o=r[n].indexOf("="),i=void 0,a=void 0;if(-1===o?(i=s(r[n]),a=""):(i=s(r[n].slice(0,o)),a=r[n].slice(o+1)),i){var c=Boolean(/(\[\])$/.exec(i));i=i.replace(/\[\]$/,""),c?void 0===t[i]?t[i]=[s(a)]:t[i]=[].concat(t[i],s(a)):t[i]=s(a)}}return t}t.parseQueryString=c,t.getParamsFromUrl=function(e){return c(i(e).search)};var d=function(e,t){return t.map((function(t){return"".concat(e,"[]=").concat(encodeURIComponent(t))})).join("&")};function u(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];(0,r(9).isArray)(o)?t.push(d(n,o)):void 0!==o&&t.push("".concat(n,"=").concat(encodeURIComponent(o)))}return"?".concat(t.join("&"))}t.formatQueryString=u,t.addParamToUrl=function(e,t,r){if(void 0===r)return e;var o=i(e),s=c(o.search);return s[t]=r,a(n(n({},o),{search:u(s)}))},t.addParamsToUrl=function(e,t,o){var s=void 0===o?{}:o,d=s.override,p=void 0===d||d,f=s.saveOriginalPath,l=void 0!==f&&f,h=i(e),v=c(h.search);(0,r(19).forOwn)(t,(function(e,t){(void 0===v[t]||p)&&(v[t]=e)}));var y=u(v);return a(n(n({},h),{search:y}),l)},t.getPostProtocolIndex=function(e){var t=e.indexOf("//");return-1!==t?t+2:0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeEventListenerFunction=t.addEventListenerFunction=void 0;t.addEventListenerFunction=function(e,t,r){e.attachEvent("on"+t,r)};t.removeEventListenerFunction=function(e,t,r){e.detachEvent("on"+t,r)},(0,r(27).getNativeMethod)(document,"addEventListener")&&(0,r(27).getNativeMethod)(document,"removeEventListener")&&(t.addEventListenerFunction=function(e,t,n,o){var i=e&&(0,r(27).getNativeMethod)(e,"addEventListener");i&&i.call(e,t,n,o)},t.removeEventListenerFunction=function(e,t,n,o){var i=e&&(0,r(27).getNativeMethod)(e,"removeEventListener");i&&i.call(e,t,n,o)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;t.every=function(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r,e))return!1;return!0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectKeys=void 0,t.getObjectKeys=function(e){if("function"==typeof Object.keys)return Object.keys(e);var t=[];for(var n in e)(0,r(53).hasOwnProperty)(e,n)&&t.push(n);return t}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ns=t.win=void 0,t.win=window,t.ns=t.win.Ya||(t.win.Ya={})},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInternalClass=void 0;var n={}.toString,o=/\[object (\w+)\]/;t.getInternalClass=function(e){var t=n.call(e);if(!t)return null;var r=t.match(o);if(!r)return null;var i=r[1];return i||null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;var n=r(200).M,o={pid:"",encode:{key:""},replaceClasses:[],detect:{links:[],custom:[],iframes:[]},cookieMatching:{publisherTag:"",publisherKey:"",types:[],type:r(226).AdblockCookieMatchingType.doNotMatch,redirectUrl:["//an.yand","ex.ru/map","uid/"].join(""),imageUrl:"/static/img/logo.gif/",cryptedUidUrl:"https://http-check-headers.yandex.ru",cryptedUidCookie:"crookie",cryptedUidTTL:336},additionalParams:{},cookieTTL:336,extuidCookies:[],debug:!1,force:!1,disableShadow:!1,forcecry:{enabled:!1,expires:0,percent:0},treeProtection:{enabled:!1},countToXhr:!1,blockToIframeSelectors:[],pcodeDebug:!1};t.config="string"==typeof n?o:n},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.some=void 0;t.some=function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unique=void 0,t.unique=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=n;return(0,r(36).getObjectKeys)(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowSize=void 0,t.getWindowSize=function(){return{width:window.innerWidth,height:window.innerHeight}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleClass=t.removeClass=t.addClass=t._fallbackHasClass=t._hasClass=t.hasClass=t.clearClasses=void 0;var n,o="classList"in document.documentElement,i=(0,r(90).memoizeSingle)((function(e){return e.classList&&e.classList.add}),r(22).checkNativeCode),a=(0,r(90).memoizeSingle)((function(e){return e.classList&&e.classList.remove}),r(22).checkNativeCode),s=(0,r(90).memoizeSingle)((function(e){return e.classList&&e.classList.toggle}),r(22).checkNativeCode),c=(n=document.createElement("p"),!!o&&(n.classList.add("c1","c2"),!!n.classList.contains("c2")&&(n.classList.toggle("c3",!1),!n.classList.contains("c3")))),d=function(){var e=document.createElement("p");return!!o&&(e.classList.toggle("a",!1),!e.classList.contains("a"))}(),u=function(e){return e.split(" ").filter((function(e){return Boolean(e)}))};function p(e){return(0,r(15).isString)(e.className)?e.className:e.namespaceURI===r(82).NS.svg&&e.getAttribute("class")||""}function f(e,t){(0,r(15).isString)(e.className)?e.className=t:e.namespaceURI===r(82).NS.svg&&e.setAttributeNS("","class",t)}t.clearClasses=function(e){(0,r(15).isString)(e.className)?e.className="":e.namespaceURI===r(82).NS.svg&&e.setAttributeNS("","class","")};function l(e,t){for(var r=u(t),n=0;n<r.length;n++)if(!e.classList.contains(r[n]))return!1;return!0}function h(e,t){for(var r=" "+p(e)+" ",n=t.split(" "),o=0;o<n.length;o++)if(n[o]&&-1===r.indexOf(" "+n[o]+" "))return!1;return!0}function v(e,t){void 0===t&&(t=""),0!==e.className.length?i(e)?y(e,t):function(e,t){var n=p(e).split(" ").concat(t.split(" "));n=(0,r(50).unique)((0,r(13).filter)(n,(function(e){return""!==e}))),f(e,n.join(" "))}(e,t):e.className=t}t.hasClass=function(e,t){return void 0===t&&(t=""),e.classList?l(e,t):h(e,t)},t._hasClass=l,t._fallbackHasClass=h,t.addClass=v;var y=c?function(e,t){var r,n=u(t);(r=e.classList).add.apply(r,n)}:function(e,t){for(var r=u(t),n=0;n<r.length;n++)e.classList.add(r[n])};t.removeClass=function(e,t){return void 0===t&&(t=""),a(e)?g(e,t):function(e,t){for(var n=p(e).split(" "),o=t.split(" "),i=[],a=0;a<n.length;a++)n[a]&&-1===(0,r(69).indexOf)(o,n[a])&&i.push(n[a]);f(e,i.join(" "))}(e,t)};var g=c?function(e,t){var r,n=u(t);(r=e.classList).remove.apply(r,n)}:function(e,t){for(var r=u(t),n=0;n<r.length;n++)e.classList.remove(r[n])};var m=function(e,r,n){void 0===r&&(r=""),void 0===n&&(n=!(0,t.hasClass)(e,r)),n?v(e,r):(0,t.removeClass)(e,r)};t.toggleClass=d?function(e,t,r){if(void 0===t&&(t=""),s(e))for(var n=u(t),o=0;o<n.length;o++)void 0===r?e.classList.toggle(n[o]):e.classList.toggle(n[o],r);else m(e,t,r)}:m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOwnProperty=void 0,t.hasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validationErrors=t.templateErrorMessage=void 0;t.templateErrorMessage=function(e,t){return e.replace(/\{\{([0-9])\}\}/g,(function(e,r){return t[r]}))},t.validationErrors={wrongStructure:{code:0,message:"AdUnit with code {{0}} has wrong structure."},similarBidderNames:{code:1,message:"adUnit with code {{0}} has more than one bids with similar biddernames."},similarBidderIds:{code:2,message:"adUnit with code {{0}} has more than one bids with similar {{1}}={{2}}."},similarElementIds:{code:3,message:"config has adUnits with similar id = {{0}}."},unnecessaryAdBreakTypes:{code:4,message:"adUnit with code {{0}} is marked by codeType {{1}} but has bids with unnecessary adBreakTypes field."},adBreakTypesIsNotArray:{code:5,message:"adUnit with code {{0}} is marked by codeType instream so its bid {{1}} should have field adBreakTypes as array([])."},adBreakTypesIsEmpty:{code:6,message:"adUnit with code {{0}} is marked by codeType instream so adBreakTypes of its bid {{1}} should not be empty."},adBreakTypeIsNotCorrect:{code:7,message:"adUnit with code {{0}} has bid {{1}} with incorrect adBreakType {{2}}. Supported ones are {{3}}."},unsupportedCodeType:{code:8,message:"adUnit with code {{0}} has unsupported codeType {{1}}."}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildBidForAdfox=t.createEmptyFetchedBids=t.separateByDomain=t.getPlacementId=t.getBidderNames=t.getBids=void 0;t.getBids=function(e,t){var n=[];return(0,r(1).forEach)(t,(function(t){var o=t.code,i=t.bids,a=t.sizes,s=t.codeType,c=(0,r(13).filter)(i,(function(t){return t.bidder===e}));if(c.length){var d=c[0];s?d.params.codeType=s:delete d.params.codeType,n.push({code:o,params:d.params,sizes:a,customDomain:d.customDomain})}})),n};t.getBidderNames=function(e){var t,n=(t=[]).concat.apply(t,(0,r(11).map)(e,(function(e){return(0,r(11).map)(e.bids,(function(e){return e.bidder}))})));return(0,r(50).unique)(n)};t.getPlacementId=function(e){var t=e.zoneId,r=e.siteid,n=e.placementId;return t=void 0===t?t:t.toString(),n||r||t};t.separateByDomain=function(e){var t=[];return(0,r(19).forOwn)(e,(function(e){var n={};(0,r(1).forEach)(e,(function(e){var t=e.customDomain||"ads.adfox.ru";n[t]?n[t].push(e):n[t]=[e]})),(0,r(19).forOwn)(n,(function(e){return t.push(e)}))})),t},t.createEmptyFetchedBids=function(){return{bids:[],creatives:{},creativeUrls:{}}},t.buildBidForAdfox=function(e){return e instanceof r(0).BidError?function(e){var t={bidderName:e.adapterName,campaign_id:e.campaignId,response_time:e.requestDuration,error:{code:e.errorCode}};e.placementId&&(t.placement_id=String(e.placementId));return t}(e):function(e){var t=e.placementId,r=e.campaignId,n=e.cost,o=n.currency,i=n.price,a=n.unit,s={bidderName:e.adapterName,campaign_id:r,response_time:e.requestDuration,bid:i,currency:o,unit:a};"winNotice"in e&&(s.win_notice=e.winNotice);t&&(s.placement_id=String(t));return s}(e)}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHead=void 0,t.getHead=function(e){var t=e.document,r=t.getElementsByTagName("head")[0];return r||(r=t.createElement("head"),t.documentElement.appendChild(r)),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomInt=void 0,t.getRandomInt=function(e,t){var n=e+(0,r(88).random)()*(t+1-e);return n=Math.floor(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.find=void 0;var n=[].find;t.find=(0,r(22).checkNativeCode)(n)?function(e,t){return n.call(e,t)}:function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r,e))return n}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSupportsCaptureOption=t.isSupportsPassiveOption=t.isSupportsOnceOption=void 0,t.isSupportsOnceOption=!1,t.isSupportsPassiveOption=!1,t.isSupportsCaptureOption=!1;try{if((0,r(105).getHasObjectDefineProperty)()){var n=document.createElement("div"),o={};Object.defineProperty(o,"once",{get:function(){return t.isSupportsOnceOption=!0}}),Object.defineProperty(o,"passive",{get:function(){return t.isSupportsPassiveOption=!0}}),Object.defineProperty(o,"capture",{get:function(){return t.isSupportsCaptureOption=!0}}),(0,r(33).addEventListenerFunction)(n,"click",r(2).noop,o)}}catch(e){}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.biddersStorage=t.BiddersStorage=void 0;var n=function(){function e(){this.biddersRequested=[],this.onBidsReceivedCallbacks=[]}return e.prototype.reset=function(){this.biddersRequested=[],this.onBidsReceivedCallbacks=[]},e.prototype.onBidsRecieved=function(){this.biddersRequested=[],(0,r(1).forEach)(this.onBidsReceivedCallbacks,(function(e){return e()}))},e.prototype.getBiddersRequested=function(){return this.biddersRequested},e}();t.BiddersStorage=n,t.biddersStorage=new n},function(e,t,r){"use strict";function n(e){e&&e.un()}Object.defineProperty(t,"__esModule",{value:!0}),t.un=t.on=void 0,t.on=function(e,t,o,i,a){if(!e||!o)return null;var s,c=(0,r(16).protect)("handler:"+t,o,i),d=(0,r(138).fixEvent)(c),u={un:function(){(0,r(33).removeEventListenerFunction)(e,t,d)}};return a&&a.once&&!r(61).isSupportsOnceOption&&(s=d,d=function(e){s.call(this,e),n(u)}),r(61).isSupportsPassiveOption?(0,r(33).addEventListenerFunction)(e,t,d,a):(0,r(33).addEventListenerFunction)(e,t,d,a&&a.capture),u},t.un=n},,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0;t.request=function e(t){var o=t.method,i=t.url,a=t.async,s=void 0===a||a,c=t.data,d=t.responseType,u=void 0===d?"text":d,p=t.onBeforeSend,f=void 0===p?r(2).noop:p,l=t.onRetry,h=void 0===l?r(2).noop:l,v=t.checkStatus,y=void 0===v?function(e){return 200===e}:v,g=t.headers,m=void 0===g?{}:g,b=t.xhrConstructor,A=void 0===b?XMLHttpRequest:b,E=t.retries,_=void 0===E?0:E,B=t.timeout,T=void 0===B?0:B,M=t.withCredentials,S=t.onAbort,O=t.onSetup;if(A){var R,w=t.onSuccess?(0,r(23).once)(t.onSuccess):r(2).noop,P=t.onError?(0,r(23).once)(t.onError):r(2).noop,C=!1,N=0,x=function(e){C=!0,x=r(2).noop,R=e,I(new Error("Abort request")),"function"==typeof S&&S(e)},I=function(o){if(j.onerror=null,j.onreadystatechange=null,N&&clearTimeout(N),N&&4!==j.readyState||C)try{j.abort()}catch(o){}if(!C)if(_>0){var i=h(o,j);if("boolean"!=typeof i||Boolean(i)||x(),C)return;e(n(n({},t),{onSetup:function(e){var t=e.abort;x=function(e){return t(e)},C&&t(R)},retries:_-1}))}else x=r(2).noop,P(o,j)},j=new A;try{j.open(o,i,s)}catch(e){return void I(e)}if(j.responseType=u,j.withCredentials=Boolean(M),(0,r(19).forOwn)(m,(function(e,t){try{j.setRequestHeader(t,e)}catch(e){}})),T>0&&isFinite(T)&&(N=window.setTimeout((function(){I(new Error("Request timeout, ".concat(i)))}),T)),j.onerror=I,j.onreadystatechange=function(){if(4===j.readyState){var e=j.status;y(e)?(x=r(2).noop,clearTimeout(N),w(j)):I(new Error("Invalid request status ".concat(e,", ").concat(i)))}},!("function"==typeof O&&(O({abort:function(e){return x(e)}}),C)||(f(j,t),C)))try{j.send(c)}catch(e){I(e)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatePr=void 0;t.generatePr=function(){return Math.floor(4294967295*Math.random())+1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indexOf=void 0;t.indexOf=function(e,t,r,o){void 0===r&&(r=0),void 0===o&&(o=n);for(var i=r;i<e.length;i++)if(o(e[i],t))return i;return-1};var n=function(e,t){return e===t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.includes=void 0,t.includes=function(e,t){return-1!==(0,r(69).indexOf)(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;t.reduce=function(e,t,r){var n=0;for(arguments.length<3&&(n=1,r=e[0]);n<e.length;n++)r=t(r,e[n],n,e);return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styleToString=t.setStyle=void 0;var n=new RegExp(["box-flex","box-flex-group","column-count","fill-opacity","flex","flex-grow","flex-positive","flex-shrink","flex-negative","font-weight","line-height","opacity","order","z-index","zoom"].join("|"),"i");function o(e,t,r,o){void 0!==r&&void 0!==t&&(r+=!n.test(t)&&r>>>0?"px":"",e.style.setProperty?e.style.setProperty(t,r,o?"important":""):e.style.cssText+=";".concat(t,": ").concat(r).concat(o?"!important":""))}t.setStyle=function(e,t,n,i){(0,r(24).isObject)(t)?(i=Boolean(n),(0,r(19).forOwn)(t,(function(t,r){o(e,r,t,i)}))):o(e,t,n,i)},t.styleToString=function(e,t){void 0===t&&(t=!1);var o=t?"!important":"",i="";return(0,r(19).forOwn)(e,(function(e,t){if(void 0!==e&&void 0!==t){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e+=!n.test(r)&&e>>>0?"px":"",i+="".concat(r,": ").concat(e).concat(o,";")}})),i}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=t.ObjectCache=void 0;var n=function(){function e(e){this.cache=e}return e.prototype.get=function(e){return this.cache[e]},e.prototype.has=function(e){return e in this.cache},e.prototype.set=function(e,t){this.cache[e]=t},e}();t.ObjectCache=n;t.memoize=function(e,t,r){return void 0===t&&(t=function(e){return e}),void 0===r&&(r=new n({})),function(){var n=t.apply(this,arguments);if(r.has(n))return r.get(n);var o=e.apply(this,arguments);return r.set(n,o),o}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHostWithPath=t.getHref=t.getHost=t.getPageRef=t.getTargetRef=void 0,t.getTargetRef=function(e){void 0===e&&(e=window);try{return e.top.location.href}catch(e){}try{return e.document.referrer||e.location.href}catch(e){}return""},t.getPageRef=function(e){void 0===e&&(e=window);try{return e.top.document.referrer}catch(e){}return""},t.getHost=function(e){void 0===e&&(e=window);try{return e.location.host}catch(e){}return""},t.getHref=function(e){void 0===e&&(e=window);try{return e.location.href}catch(e){}return""},t.getHostWithPath=function(e){void 0===e&&(e=window);try{return"".concat(e.location.hostname).concat(e.location.pathname)}catch(e){}return""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateNow=void 0;var n=Date&&(0,r(3).isFunction)(Date.now);t.dateNow=n?function(){return Date.now()}:function(){return(new Date).getTime()}},function(e,t,r){"use strict";var n,o,i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.Methods=void 0,function(e){e["GET"]="GET",e["POST"]="POST",e["HEAD"]="HEAD"}(o=t.Methods||(t.Methods={}));var a=function(){function e(e,t){this.url=e,this.params=t}return e.prototype.open=function(){this.xr.open(this.params.method,this.url),this.setSettings()},e.prototype.setSettings=function(){this.setCallbacks()},e.prototype.setTimeout=function(){var e=this,t=this.params.timeout;t&&t>0&&(this.timer=window.setTimeout((function(){e.onTimeout(),e.abort()}),t))},e.prototype.clearTimeout=function(){this.timer&&clearTimeout(this.timer)},e.prototype.setCallbacks=function(){var e=this,t=function(t){return e.onError(t&&t.message||"Error!")};this.xr.onerror=t,this.xr.ontimeout=t},e.prototype.onLoad=function(e){this.clearTimeout(),this.params.onload&&this.params.onload(e)},e.prototype.onTimeout=function(){this.isTimeouted=!0,this.params.ontimeout&&this.params.ontimeout()},e.prototype.onError=function(e,t){this.isTimeouted||(this.clearTimeout(),this.params.onerror&&this.params.onerror({message:e,code:t,xr:this.xr}))},e.prototype.send=function(){this.setTimeout(),this.xr.send(this.params.data)},e.prototype.abort=function(){this.xr&&this.xr.abort()},e}(),s=function(e){function t(t,n){var o=e.call(this,t,n)||this,i=(0,r(224).getNativeXhr)();return o.xr=new i,o.open(),o}return i(t,e),t.prototype.setCallbacks=function(){var t=this;e.prototype.setCallbacks.call(this);var r=this.xr;r.onreadystatechange=function(){4===r.readyState&&(200===r.status||304===r.status?t.onLoad(r.response):t.onError(r.statusText,r.status))}},t.prototype.setSettings=function(){e.prototype.setSettings.call(this),this.addHeaders(),this.xr.withCredentials=this.params.withCredentials},t.prototype.abort=function(){4!==this.xr.readyState&&e.prototype.abort.call(this)},t.prototype.addHeaders=function(){var e=this,t=this.params.headers;t&&(0,r(19).forOwn)(t,(function(t,r){return e.xr.setRequestHeader(r,t)}))},t}(a),c=function(e){function t(t,n){var o=e.call(this,(0,r(169).replaceProtocolToHTTPS)(t),n)||this;return o.xr=new window.XDomainRequest,o.open(),o}return i(t,e),t.prototype.setCallbacks=function(){var t=this;e.prototype.setCallbacks.call(this),this.xr.onload=function(){return t.onLoad(t.xr.responseText)}},t.prototype.send=function(){var t=this;setTimeout((function(){return e.prototype.send.call(t)}),0)},t}(a);t.request=function(e,t){void 0===t&&(t={});var r={method:t.method||o.POST,withCredentials:void 0===t.withCredentials||t.withCredentials,timeout:t.timeout,data:t.data,headers:t.headers,onerror:t.onerror,onload:t.onload,ontimeout:t.ontimeout},n=window.XDomainRequest?new c(e,r):new s(e,r);return n.send(),function(){return n.abort()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.isEncoded=t.decode=void 0,t.decode=function(e){return(0,r(91).serverEncodeEnabled)(r(43).config.fn)?r(43).config.fn.decodeUrl(e):e},t.isEncoded=function(e){return!!(0,r(91).serverEncodeEnabled)(r(43).config.fn)&&r(43).config.fn.isEncodedUrl(e)},t.encode=function(e){return(0,r(91).serverEncodeEnabled)(r(43).config.fn)?r(43).config.fn.encodeUrl(e):e}},function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Cost=t.Currency=t.Units=void 0,function(e){e[e["100-TH"]=0]="100-TH",e[e["1-TH"]=1]="1-TH",e[e["1000-TH"]=2]="1000-TH"}(n=t.Units||(t.Units={})),function(e){e["RUB"]="RUB",e["USD"]="USD"}(o=t.Currency||(t.Currency={}));var i=function(){function e(t){var r=t.currency,n=void 0===r?o.RUB:r;this.currency=n;var i=e.increaseUnit(t),a=i.price,s=i.unit;this.unit=s,this.price=a,this.cpm=e.countCpmFromUnit(t).price}return e.increaseUnit=function(t){var r=t.price,o=t.unit;if(!e.isInt(r))switch(o){case n["1-TH"]:return e.increaseUnit({price:100*r,unit:n["100-TH"]});case n["100-TH"]:return e.increaseUnit({price:10*r,unit:n["1000-TH"]})}return{price:Math.floor(r),unit:o}},e.countCpmFromUnit=function(t){var r=t.price,o=t.unit;switch(o){case n["1000-TH"]:return e.countCpmFromUnit({price:r/10,unit:n["100-TH"]});case n["100-TH"]:return e.countCpmFromUnit({price:r/100,unit:n["1-TH"]});default:return{price:r,unit:o}}},e.isInt=function(e){return Number(e.toFixed(3))%1==0},e}();t.Cost=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeNodeFromParent=void 0,t.removeNodeFromParent=function(e){if(e){var t=e.parentElement;t&&t.removeChild(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeNamespace=t.AttributeNames=t.NS=void 0;var n=r(19);t.NS={xml:"http://www.w3.org/XML/1998/namespace",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"},t.AttributeNames={xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type"},t.AttributeNamespace={},(0,n.forOwn)(t.AttributeNames,(function(e,r){var n=e.split(":"),o=t.NS[n[0]];o&&(t.AttributeNamespace[r]=o)}))},function(e,t,r){"use strict";t.__esModule=!0,t.isWebkit=t.isSVGSupported=t.isPassiveEventsSupported=t.isCanvasSupported=t.isIe=t.isFirefox=t.ieVer=t.isSafeframe=t.isAMP=t.isTouch=void 0;var n=(navigator||{}).userAgent||"",o=void 0!==window.ontouchstart;t.isTouch=o;var i=r(96)();var a=Boolean(window.ampSeen);t.isAMP=a;var s=Boolean(window.$sf&&window.$sf.ext);t.isSafeframe=s;var c=i;t.ieVer=c;var d=/Firefox/gi.test(n);t.isFirefox=d;var u=Boolean(i);t.isIe=u;var p,f=(p=document.createElement("canvas"),Boolean(p&&p.getContext&&p.getContext("2d")));t.isCanvasSupported=f;var l=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();t.isPassiveEventsSupported=l;t.isSVGSupported=!0;var h=/WebKit/gi.test(n);t.isWebkit=h},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadCustomScript=void 0,t.loadCustomScript=function(e){var t=e.win.document.createElement("script");return t.async=!0,e.nonce&&(t.nonce=e.nonce),(0,r(3).isFunction)(e.onLoad)&&(t.onload=function(){t.onload=function(){},(0,r(3).isFunction)(e.onLoad)&&e.onLoad()}),e.hasCors="boolean"!=typeof e.hasCors||e.hasCors,e.hasCors&&t.setAttribute("crossorigin","anonymous"),t.src=e.src,e.container?e.container.appendChild(t):(0,r(58).getHead)(e.win).appendChild(t),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.random=void 0,t.random=r(127).IS_BROKEN_MATH_RANDOM?r(128).pseudoRandom:function(){return Math.random()}},,function(e,t,r){"use strict";var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function o(e){var t=n([],e,!0),r=t.pop();if(!r||0===t.length)throw new Error("memoizeSingle need at least 2 functions as arg");return{preparers:t,resolver:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.memoizeSingle=void 0;t.memoizeSingle=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=o(e),i=n.resolver,a=n.preparers,s=null,c=null;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(s&&s.every((function(t,r){return e[r]===t})))return r;var n=a.map((function(t){return t.apply(void 0,e)}));if(c&&c.every((function(e,t){return n[t]===e})))return s=e,r;var o=i.apply(void 0,n);return s=e,c=n,r=o,o}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serverEncodeEnabled=void 0,t.serverEncodeEnabled=function(e){return!!Boolean(e)&&((0,r(3).isFunction)(e.encodeCSS)&&(0,r(3).isFunction)(e.encodeUrl)&&(0,r(3).isFunction)(e.decodeUrl)&&(0,r(3).isFunction)(e.isEncodedUrl))}},,,,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.getCookie=t.setCookie=void 0;t.setCookie=function(e,t,n,o){void 0===o&&(o={}),(0,r(166).isDate)(o.expires)&&(o.expires=o.expires.toUTCString()),void 0===o.path&&(o.path="/");var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a]));try{var s="".concat(encodeURIComponent(String(t)),"=").concat(encodeURIComponent(String(n)));return e.cookie=s+i}catch(e){return}};t.getCookie=function(e,t){var r=[];try{r=e.cookie?e.cookie.split("; "):[]}catch(e){}for(var n,o=/(%[0-9A-Z]{2})+/g,i=0;i<r.length;i++){var a=r[i].split("="),s=a.slice(1).join("=");try{var c=a[0].replace(o,decodeURIComponent);if(s.replace(o,decodeURIComponent),t===c){n=decodeURIComponent(s);break}}catch(e){return}}return n};t.deleteCookie=function(e,r,o){(0,t.setCookie)(e,r,"",n(n({},o),{expires:new Date(0)}))}},function(e,t){e.exports=function(e){e||(e=window);var t=e.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var o=t.indexOf("Edge/");return o>0&&parseInt(t.substring(o+5,t.indexOf(".",o)),10)}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forOwn=void 0,Object.defineProperty(t,"forOwn",{enumerable:!0,get:function(){return r(19).forOwn}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0;var n=function(){var e=this;this.promise=new Promise((function(t,r){e.resolve=t,e.reject=r}))};t.Deferred=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSafeframeVersion=t.getSafeframeVersion=void 0;var n=83;t.getSafeframeVersion=function(){return n},t.setSafeframeVersion=function(e){e&&(n=e)}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundleVersion=t.loaderVersion=void 0,t.loaderVersion=586016,t.bundleVersion=586016},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHasObjectDefineProperty=void 0;t.getHasObjectDefineProperty=function(e){void 0===e&&(e=window);var t=e.Object;try{var r={};return t.defineProperty(r,"sentinel",{}),"sentinel"in r}catch(e){return!1}}},,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomString=void 0,t.getRandomString=function(e){for(var t=[],n=0;n<e;n++)t.push((0,r(126).getRandomChar)());return t.join("")}},,,function(e,t,r){"use strict";t.__esModule=!0,Object.keys(r(29)).forEach((function(e){"default"!==e&&"__esModule"!==e&&(t[e]=r(29)[e])}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadImage=void 0,t.loadImage=function(e){var t,n=new Image;(0,r(3).isFunction)(e.onLoad)&&(0,r(65).on)(n,"load",(function(){return e.onLoad(n)}),e.ctx),(0,r(3).isFunction)(e.onError)&&(0,r(65).on)(n,"error",e.onError,e.ctx),n.crossOrigin=null!==(t=e.crossOrigin)&&void 0!==t?t:null,n.src=e.src}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomChar=void 0,t.getRandomChar=function(e,t){void 0===e&&(e="a"),void 0===t&&(t="z");var n=(0,r(59).getRandomInt)(e.charCodeAt(0),t.charCodeAt(0));return String.fromCharCode(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_BROKEN_MATH_RANDOM=void 0,t.IS_BROKEN_MATH_RANDOM=!(0,r(22).checkNativeCode)(Math.random)||Math.random()==Math.random()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoRandom=void 0;var n=Date.now()*(0,r(129).performanceNow)()%2147483647;t.pseudoRandom=function(){return((n=16807*n%2147483647)-1)/2147483646}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.performanceNowShim=t.isPerformanceNowSupported=void 0;var n="undefined"==typeof window?void 0:window.performance;t.isPerformanceNowSupported=n&&(0,r(3).isFunction)(n.now);var o=n&&n.timing&&n.timing.navigationStart?n.timing.navigationStart:(0,r(77).dateNow)(),i=0;t.performanceNowShim=function(){var e=(0,r(77).dateNow)()-o;return i=Math.max(e,i)},t.performanceNow=t.isPerformanceNowSupported?function(){return n.now()}:function(){return(0,t.performanceNowShim)()}},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAllCookies=void 0,t.isAllCookies=(0,r(227).isPercent)(25)},function(e,t,r){"use strict";function n(){this.returnValue=!1}function o(){this.cancelBubble=!0}Object.defineProperty(t,"__esModule",{value:!0}),t.fixEvent=void 0,t.fixEvent=function(e){return function(t){var r=function(e){return e.stopPropagation||(e.stopPropagation=o),e.preventDefault||(e.preventDefault=n),e.target||(e.target=e.srcElement),e}(t);e.call(this,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_TIMEOUT=void 0,t.DEFAULT_TIMEOUT=300},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAdfoxBidder=void 0;t.isAdfoxBidder=function(e){return 0===e.indexOf("adfox_")}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BidFactory=t.BidType=void 0,function(e){e["error"]="error",e["native"]="native",e["banner"]="banner",e["adfox"]="adfox"}(n=t.BidType||(t.BidType={}));var o=function(){function e(){}return e.getBid=function(e){var t,o=e.type,i=e.adapterName,a=e.containerId,s=e.campaignId,c=e.requestStartTime;switch(o){case n.banner:t=new(r(0).BannerBid)(i,a,s);break;case n["native"]:t=new(r(0).NativeBid)(i,a,s);break;case n.error:t=new(r(0).BidError)(i,a,s);break;case n.adfox:t=new(r(0).AdfoxBid)(i,a,s);break;default:throw Error("BidFactory: no such bid type")}return t.setRequestDuration(c),t},e}();t.BidFactory=o},,,,function(e,t,r){"use strict";t.__esModule=!0,t.report=function(e,t){!e||"string"!=typeof e||t&&n[e]||(n[e]=!0,(0,r(233).sendPixel)(e))},t.clearCache=function(){0};var n={}},,,,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.updateSafeframeSize=t.isInSafeframe=t.nukeSafeframe=t.initSafeframe=t.loadSafeframe=t.getSafeframeLoaderURL=void 0;var o=window;o.yaSafeFrameCallbacksStorage=o.yaSafeFrameCallbacksStorage||{};var i=(0,r(79).isEncoded)("https://yastatic.net/safeframe/1-1-0/");function a(){var e=["https://yastatic",".net/safeframe-bundles/0.".concat((0,r(102).getSafeframeVersion)(),"/"),i?"host_adb.js":"host.js"].join("");return i?(0,r(79).encode)(e):e}function s(e){e.isLoadingSafeframeStarted||(e.isLoadingSafeframeStarted=!0,(0,r(87).loadCustomScript)({win:e,src:a(),hasCors:!i}))}function c(e){var t=e["yaSafeFrameAsyncCallbacks"]||[];return e["yaSafeFrameAsyncCallbacks"]=t,t}function d(e,t){delete e.yaSafeFrameCallbacksStorage[t]}function u(e){return Boolean(e.$sf&&e.$sf.ext)}t.getSafeframeLoaderURL=a,t.loadSafeframe=s,t.initSafeframe=function(e,t,o,i,a,u,p){void 0===i&&(i=r(2).noop),void 0===a&&(a=r(2).noop),void 0===u&&(u=r(2).noop),s(e);var f=c(e),l=o.id instanceof Element?"":o.id,h=function(e,t){return t||e.id||"sf-".concat(Math.floor(4294967295*Math.random())+1)}(t,l);f.push((function(){e.yaSafeFrameCallbacksStorage=e.yaSafeFrameCallbacksStorage||{},e.yaSafeFrameCallbacksStorage[h]={onError:i,onRender:a,onAction:u},function(e,t){e.yaSafeFrameCallbacksStorage=e.yaSafeFrameCallbacksStorage||{};var r=e.yaSafeFrameCallbacksStorage;new e.$sf.host.Config(n({auto:!1,onFailure:function(e,t,n){r[e]&&r[e].onError(e,n)},onEndPosRender:function(e,t,n){r[e]&&r[e].onRender(e,n)},onPosMsg:function(t,n,o){r[t]&&r[t].onAction(n,o),"nuke"===n&&d(e,t)}},t))}(e,p?{query:p}:void 0),function(e,t,r,n){t.id=n;var o=r.html,i=r.width,a=r.height,s=r.basePath,c={id:n,html:o,conf:{nonce:r.nonce,w:i,h:a,dest:t,protected:r["protected"],sandbox:r.sandbox,basePath:s}};r.supports&&(c.conf.supports=r.supports),e.$sf.host.render(c)}(e,t,o,h)}))},t.nukeSafeframe=function(e,t){s(e),c(e).push((function(){d(e,t),e.$sf.host.nuke(t)}))},t.isInSafeframe=u,t.updateSafeframeSize=function(e,t){if(u(e)){var r=e.$sf.ext.geom(),n=r.self.w+r.exp.r,o=r.self.h+r.exp.b,i=n>t.width?t.width-r.self.w:r.exp.r,a=o>t.height?t.height-r.self.h:r.exp.b;e.$sf.ext.expand({t:0,l:0,r:i,b:a})}}},,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDate=void 0;t.isDate=function(e){return e instanceof Date||"Date"===(0,r(42).getInternalClass)(e)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceProtocolToHTTPS=void 0;t.replaceProtocolToHTTPS=function(e){return e.replace(/^http:/,"https:")}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPr=void 0,t.getPr=function(){return r(17).ns.pr||r(38).ns.headerBidding&&r(38).ns.headerBidding.pr}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.difference=void 0,t.difference=function(e,t){return(0,r(13).filter)(e,(function(e){return!(0,r(46).some)(t,(function(t){return e===t}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAdUnitsStructure=t.BidParamsKeys=void 0,t.BidParamsKeys=["zoneid","siteid","placementId"];var n=function(e){return e.hasOwnProperty("params")&&(0,r(24).isObject)(e.params)&&((0,r(140).isAdfoxBidder)(e.bidder)||function(e){for(var n=!1,o=0,i=t.BidParamsKeys;o<i.length;o++){var a=i[o];if(e.hasOwnProperty(a)){var s=String(e[a]).trim();if(!/[^\s0.]/.test(s))return!1;e[a]=s,n=!0}}return n||e.hasOwnProperty("nativeCallback")&&(0,r(3).isFunction)(e["nativeCallback"])}(e.params))};t.checkAdUnitsStructure=function(e,t){return(0,r(13).filter)(e,(function(e){var o=(0,r(24).isObject)(e)&&function(e){return e.hasOwnProperty("code")&&"string"==typeof e.code}(e)&&function(e){return e.hasOwnProperty("bids")&&(0,r(9).isArray)(e.bids)&&(0,r(34).every)(e.bids,(function(e){return function(e){return e.hasOwnProperty("bidder")&&"string"==typeof e.bidder}(e)&&n(e)}))}(e)&&function(e){var t=e.sizes;return!t||e.hasOwnProperty("sizes")&&(0,r(9).isArray)(t)&&(0,r(34).every)(t,(function(e){return(0,r(9).isArray)(e)&&(n=(t=e)[0],o=t[1],"number"==typeof n&&"number"==typeof o);var t,n,o}))}(e);return o||t(e),o}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedAdBreakTypes=void 0,t.SupportedAdBreakTypes=["preroll","midroll","postroll"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuctionRunning=t.stopAuction=t.startAuction=void 0;var n=!1;t.startAuction=function(){n=!0},t.stopAuction=function(){n=!1},t.isAuctionRunning=function(){return n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XhrForAdapter=void 0;var n=function(){function e(e){var t=e.publisherTagUrl,n=e.timeout,o=e.data,i=e.callbacks,a=e.method;this.isRequesting=!1,this.isResponsedWithError=!1,this.callbacks={onResponse:function(){},onError:function(){},onTimeout:function(){}},this.abort=function(){},this.publisherTagUrl=t,this.timeout=n,this.data=o&&r.lv["json"].stringify(o),this.method=a,this.callbacks.onResponse=i.onResponse,this.callbacks.onError=i.onError,this.callbacks.onTimeout=i.onTimeout}return e.prototype.sendXhr=function(){var e=this;this.isRequesting=!0,this.isResponsedWithError=!1,(0,r(67).request)({url:this.publisherTagUrl,onSetup:function(t){e.abort=t.abort},onSuccess:function(t){return e.onResponse(t.response)},onError:function(t,n){t instanceof Error?0===t.message.indexOf("Request timeout")?e.onTimeout():e.onError(t.message,r(21).ERRORS.HTTP_ERROR.code):e.onError(n.statusText,r(21).ERRORS.HTTP_ERROR.code)},data:this.data,method:this.method||r(78).Methods.POST,withCredentials:!0,headers:{"Content-Type":"text/plain"},timeout:this.timeout})},e.prototype.onResponse=function(e){this.isRequesting&&(this.isRequesting=!1,this.callbacks.onResponse(e))},e.prototype.onError=function(e,t){this.isResponsedWithError=!0,this.isRequesting&&(this.isRequesting=!1,this.callbacks.onError(e,t))},e.prototype.onTimeout=function(){this.isRequesting&&!this.isResponsedWithError&&(this.isRequesting=!1,this.callbacks.onTimeout())},e}();t.XhrForAdapter=n},function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Adapter=void 0;var o=function(){function e(e,t){this.win=window,this.protocol="https://",this.bidManager=e,this.name=t}return e.prototype.callBids=function(e){},e.prototype.createErrorBids=function(e,t){var n=this;(0,r(1).forEach)(e,(function(e){return n.createErrorBid(e,t)}))},e.prototype.createErrorBid=function(e,t){var n=this.bidManager.createNewBidError(e.bidderName||this.name,e.code);n.placementId=(0,r(56).getPlacementId)(e.params),n.errorCode=t,this.bidManager.addBidResponse(n)},e.prototype.onError=function(e,t,n){(0,r(28).consoleWarn)("Error ".concat(e," from ").concat(this.name)),this.createErrorBids(t,n)},e.prototype.onTimeout=function(e){this.log("HB_ADAPTER_REQUEST_TIMEOUT"),(0,r(28).consoleWarn)("Timeout from ".concat(this.name)),this.createErrorBids(e,r(21).ERRORS.TIMEOUT.code)},e.prototype.log=function(e,t){(0,r(25).errorStrict)(e,n(n({},t),{bidder:this.name}))},e}();t.Adapter=o},,function(e,t,r){"use strict";t.__esModule=!0,t["default"]=void 0;var n={hasClass:r(52).hasClass,addClass:r(52).addClass,clearClasses:r(52).clearClasses,removeClass:r(52).removeClass,toggleClass:r(52).toggleClass,setStyle:r(72).setStyle,innerHTML:r(225).innerHtml};t["default"]=n},,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.M=void 0,t.M="__ADB_CONFIG__"},,,,,,,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScriptLite=void 0;var o=function(e){return!0};t.loadScriptLite=function(e){var t=e.dropCacheOnRetry,i=void 0!==t&&t,a=e.onBeforeLoad,s=void 0===a?r(2).noop:a,c=e.retries,d=void 0===c?0:c;if(!e.checkLoad||!e.checkLoad()){var u=s,p=0;return i&&d>0&&(u=function(e){if(s(e),p>0){var t=-1===e.src.indexOf("?")?"?":"&",n=(0,r(120).getRandomString)(4);e.src+=t+n}p++}),function e(t){var i=t.src,a=t.win,s=void 0===a?window:a,c=t.charset,d=void 0===c?r(214).CHARSET_UTF_8:c,u=t.async,p=void 0===u||u,f=t.retries,l=void 0===f?0:f,h=t.onRetry,v=void 0===h?r(2).noop:h,y=t.retryDelay,g=void 0===y?0:y,m=t.checkLoad,b=void 0===m?o:m,A=t.onBeforeLoad,E=void 0===A?r(2).noop:A,_=t.onLoad,B=void 0===_?r(2).noop:_,T=t.onError,M=void 0===T?r(2).noop:T,S=s.document.createElement("script"),O=function(o){l>0?(v(o),e(n(n({},t),{src:i,retries:l-1}))):M(o),(0,r(81).removeNodeFromParent)(S)};S.type="text/javascript",S.async=p,S.onload=function(){return b(S)?B():O(new Error("checkLoad for ".concat(i," failed")))},S.onerror=function(e){try{s.setTimeout((function(){O(e)}),g)}catch(e){}},S.src=i,S.charset=d,E(S),(0,r(58).getHead)(s).appendChild(S)}(n(n({},e),{onBeforeLoad:u}))}e.onLoad&&e.onLoad()}},,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSET_UTF_8=void 0,t.CHARSET_UTF_8="utf-8"},,,,,,,,,,function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getNativeXhr=t.isXhrNative=void 0;var o,i=n(r(184)),a=window;t.isXhrNative=function(e){var t=e.prototype,n=(0,r(13).filter)((0,r(36).getObjectKeys)(t),(function(e){try{return"function"==typeof t[e]}catch(e){return!1}}));return(0,r(34).every)(n,(function(e){return(0,r(22).checkNativeCode)(t[e])}))};t.getNativeXhr=function(e){var n=(void 0===e?{}:e).onWindowCreation,s=a.XMLHttpRequest&&(0,t.isXhrNative)(a.XMLHttpRequest),c=Boolean(document.body);return s||!c?a.XMLHttpRequest:(o||(o=document.createElement("iframe"),i["default"].setStyle(o,{overflow:"hidden",display:"none",position:"absolute",left:"-9999px",top:"-9999px",width:"1px",height:"1px"})),o.contentWindow||(document.body.appendChild(o),(0,r(3).isFunction)(n)&&o.contentWindow&&n(o.contentWindow)),o.contentWindow.XMLHttpRequest)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.innerHtml=void 0,t.innerHtml=function(e,t){e.innerHTML=t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdblockCookieMatchingType=void 0,function(e){e[e["doNotMatch"]=0]="doNotMatch",e[e["image"]=1]="image",e[e["refresh"]=2]="refresh",e[e["all"]=3]="all",e[e["scrumble"]=4]="scrumble"}(t.AdblockCookieMatchingType||(t.AdblockCookieMatchingType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPercent=void 0;function n(e){return Number((e/100).toFixed(2))}t.isPercent=function(e){return Math.random()<n(e)}},,function(e,t,r){e.exports=function(e,t){r.e(38).then(function(){e(r(213))}.bind(undefined,r)).catch((function(){t&&t.apply(this,arguments)}))}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseRequestParams=void 0;t.getBaseRequestParams=function(e){var t=e.win,n=e.date,o=void 0===n?new Date:n,i=e.pr1,a=void 0===i?(0,r(68).generatePr)():i,s=r(83).isAMP?t.context.sourceUrl:t.document.referrer,c=r(83).isAMP?t.context.sourceUrl:t.location;return{dl:String(c),date:(0,r(232).toISOString)(o),pd:o.getDate().toString(),pdh:t.screen.height.toString(),pdw:t.screen.width.toString(),pr1:a.toString(),pr:(0,r(173).getPr)().toString(),prr:s,pv:o.getHours().toString(),pw:o.getDay().toString(),extid_loader:(0,r(123).encode)((0,r(95).getCookie)(t.document,"_ym_uid")||""),extid_tag_loader:t.location.hostname}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toISOString=void 0;var n=function(e,t){var r=e.toString();return"0000".substr(0,t-r.length)+r};t.toISOString=function(e){var t=e.getFullYear(),r=n(e.getMonth()+1,2),o=n(e.getDate(),2),i=n(e.getHours(),2),a=n(e.getMinutes(),2),s=n(e.getSeconds(),2),c=n(e.getMilliseconds(),3),d=function(e){var t=-e.getTimezoneOffset(),r=n(Math.floor(Math.abs(t)/60),2),o=n(Math.abs(t)%60,2);return"".concat(t>=0?"+":"-").concat(r,":").concat(o)}(e);return"".concat(t,"-").concat(r,"-").concat(o,"T").concat(i,":").concat(a,":").concat(s,".").concat(c).concat(d)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendPixel=void 0,t.sendPixel=function(e,t,n){(0,r(124).loadImage)({src:e,onLoad:t,ctx:n})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getMatchidManager=t.MatchIdCookieManager=void 0;var o=r(137).isAllCookies?{method:r(78).Methods.POST,headers:{"Content-Type":"application/json"},data:r.lv["json"].stringify({cookie_names:["yandexuid","L","sz","yp","ys","user-bans","yandex_gid","my","i","icon"]})}:{method:r(78).Methods.GET},i=function(){function e(){this.callbacks=[],this.requestState="not-started",this.cookies={}}return e.prototype.requestMatchIdCookie=function(){var e=this;if("not-started"===this.requestState){var t=Number(new Date);this.requestState="started",(0,r(78).request)("https://matchid.adfox.yandex.ru/getcookie",n(n({},o),{onerror:function(){e.requestState="ended",e.performCallbacks()},onload:function(n){(0,r(25).errorStrict)("ADFOX_MATHID_SUCCESS",{requestDuration:Number(new Date)-t,isAllCookies:r(137).isAllCookies});var o,i=r.lv["json"].parse(n);e.setMatchIdCookie((o=i,r(137).isAllCookies?{"matchid-cookies":(o=o).cookies,"matchid-cookies-sign":o.cookies_sign}:{yandexuid:(o=o).cryptouid,sign:o.cryptouid_sign})),e.requestState="ended",e.performCallbacks()},withCredentials:!0}))}},e.prototype.setMatchIdCookie=function(e){this.cookies=e},e.prototype.getMatchIdCookie=function(){return this.cookies},e.prototype.performCallbacks=function(){for(;this.callbacks.length>0;)this.callbacks.shift()(this.cookies)},e.prototype.waitForMatchIdCookie=function(e,t){var r=this;"ended"===this.requestState?e(this.cookies):(this.requestMatchIdCookie(),this.callbacks.push(e),setTimeout((function(){r.callbacks.indexOf(e)>-1&&(r.callbacks=r.callbacks.filter((function(t){return t!==e})),e(r.cookies))}),t))},e}();t.MatchIdCookieManager=i;t.getMatchidManager=function(){return r(17).ns.matchidManager||(r(17).ns.matchidManager=new i),r(17).ns.matchidManager}},,,,,,,,,function(e,t,r){"use strict";function n(e){var t=!1,r=!1,n=!1;return!0===e?t=!0:"object"==typeof e&&(t=Boolean(e.capture),r=Boolean(e.passive),n=Boolean(e.once)),{capture:t,passive:r,once:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.addEventListener=t.createFullOptionsObject=void 0,t.createFullOptionsObject=n,t.addEventListener=function(e,t,o,i){var a=n(i),s=r(61).isSupportsCaptureOption?a:a.capture,c=a.once&&!r(61).isSupportsOnceOption?function(e){d(),o.call(this,e)}:o,d=function(){(0,r(33).removeEventListenerFunction)(e,t,c,s)};return(0,r(33).addEventListenerFunction)(e,t,c,s),d}},,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectCreate=void 0,t.objectCreate=(0,r(328).getNativeMethod)(Object,"create")?Object.create:function(e,t){function n(){}if(n.prototype=e,(0,r(24).isObject)(t))for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return new n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNativeMethod=void 0,t.getNativeMethod=function(e,t){var n=e[t];if(!(0,r(22).checkNativeCode)(n)){var o=n;try{delete e[t],n=e[t],e[t]=o}catch(e){}}return n}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0;t.identity=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopy=void 0;t.deepCopy=function(e,n){void 0===n&&(n={preserveConstructors:!0});var o=e;return(0,r(9).isArray)(e)?e.map((function(e){return(0,t.deepCopy)(e,n)})):(0,r(166).isDate)(e)?new Date(e.getTime()):(!(0,r(3).isFunction)(e)&&(0,r(24).isObject)(e)&&(o=n.preserveConstructors?(0,r(327).objectCreate)(e):{},(0,r(19).forOwn)(e,(function(e,r){o[r]=(0,t.deepCopy)(e,n)}))),o)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findLastIndex=void 0;t.findLastIndex=function(e,t,n){void 0===t&&(t=function(e){return Boolean((0,r(351).identity)(e))}),void 0===n&&(n=e.length-1);for(var o=n;o>=0;o--)if(t(e[o],o,e))return o;return-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=void 0;t.mapValues=function(e,t){var n={};return(0,r(100).forOwn)(e,(function(e,r){n[r]=t(e,r)})),n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PublicYaWrapper=void 0;var n=window;(0,r(300).getMatchidManager)().requestMatchIdCookie();var o=function(){function e(e){void 0===e&&(e=window),this.pr=r(17).ns.pr||(0,r(68).generatePr)(),this.managerForAdfox=new(r(539).HBManager)(e)}return e.prototype.setSettings=function(e){void 0===e&&(e={}),n.YaHeaderBiddingSettings=e},e.prototype.pushAdUnits=function(e){this.managerForAdfox.addAdUnits(e),this.managerForAdfox.callBids(e)},e.prototype.fetchBids=function(e){return this.managerForAdfox.fetchBids(e)},e.prototype.getBidsReceived=function(){return this.managerForAdfox.getBidsReceived()},e.prototype.getLastBidsReceived=function(){return this.managerForAdfox.getLastBidsReceived()},e.prototype.getTrustedOwners=function(){return this.managerForAdfox.getTrustedOwners()},e}();function i(e){(0,r(16).protect)("hbCallback",e)()}t.PublicYaWrapper=o,r(38).ns.headerBidding=new o(window),(0,r(9).isArray)(r(17).ns.hbCallbacks)&&(0,r(1).forEach)(r(17).ns.hbCallbacks,i),r(17).ns.hbCallbacks={push:i}},function(e,t,r){"use strict";var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.HBManager=t.adUnitsStorage=void 0,t.adUnitsStorage=[];var i=function(){function e(e){var n=this;void 0===e&&(e=window),this.timeout=r(139).DEFAULT_TIMEOUT,this.validator=new(r(540).AdUnitsValidator),this.loaderVersion=r(104).loaderVersion,this.requestBids=function(e){if((0,r(180).isAuctionRunning)())(0,r(28).consoleLog)("Auction is running");else{if((0,r(180).startAuction)(),e&&n.setSettings(e),!t.adUnitsStorage||t.adUnitsStorage.length<1)return(0,r(28).consoleLog)("No adUnits configured. No bids requested."),void r(6).bidManager.executeCallback();(0,r(25).errorStrict)("HB_CALLED"),n.callBids((0,r(13).filter)(t.adUnitsStorage,(function(e){return"instream"!==e.codeType})))}},r(64).biddersStorage.reset(),(0,r(180).stopAuction)(),t.adUnitsStorage=[],e.YaHeaderBiddingSettings&&(this.settings=e.YaHeaderBiddingSettings,this.requestBids(this.settings)),Object.defineProperty(e,"YaHeaderBiddingSettings",{set:function(e){n.settings=e,n.requestBids(n.settings)},get:function(){return n.settings},configurable:!0}),new(r(542).HBPostMessageListener)(e,this)}return e.prototype.render=function(e,t,n,o,i){var a=this.getBid(n,o);(0,r(543).render)({win:e,container:t,bid:a,callbacks:i})},e.prototype.addAdfoxCallback=function(e){(0,r(3).isFunction)(e)&&r(6).bidManager.addAdfoxCallback(e)},e.prototype.getBid=function(e,t){return r(6).bidManager.getBid(e,Number(t))},e.prototype.getBidsForAdfoxByContainerId=function(e,t){r(6).bidManager.getBidsForAdfoxByContainerId(e,t)},e.prototype.getBidsReceived=function(){return r(6).bidManager.getBidsReceived()},e.prototype.getLastBidsReceived=function(){return r(6).bidManager.getLastBidsReceived()},e.prototype.getBiddersRequested=function(){return r(6).bidManager.getBiddersRequested()},e.prototype.isReady=function(){return r(6).bidManager.isReady},e.prototype.addAdUnits=function(e){if(e){var n=(0,r(9).isArray)(e)?e:[e],i=o(o([],t.adUnitsStorage,!0),n,!0),a=this.validator.validate(i);if(this.validator.isLastValidationWithErrors()){var s=(0,r(544).flatten)((0,r(11).map)(this.validator.getLog(),(function(e){return e.errors}))),c=(0,r(11).map)(s,(function(e){return e.code}));-1!==c.indexOf(r(55).validationErrors.similarElementIds.code)?console.log("HeaderBidding: Process of merging old adUnits and new adUnits is canceled"):((0,r(25).errorStrict)("HB_CONFIGURATION_ERROR",{errorCodes:c}),t.adUnitsStorage=a);var d=this.validator.getMessage();d&&console.log("HeaderBidding: ".concat(d))}else t.adUnitsStorage=a}},e.prototype.setRequestTimeout=function(e){e&&(this.timeout=e)},e.prototype.getAdunits=function(){return t.adUnitsStorage},e.prototype.getRequestTimeout=function(){return this.timeout},e.prototype.setBiddersMap=function(e){e&&r(6).bidManager.setBiddersMap(e)},e.prototype.setSettings=function(e){var t=void 0===e?{}:e,r=t.adUnits,n=t.timeout,o=t.biddersMap,i=t.callbacks,a=t.syncPixels;this.addAdUnits(r),this.setRequestTimeout(n),this.addCallbacks(i),this.setBiddersMap(o),this.setSyncPixels(a)},e.prototype.requestBidForContainer=function(e){var n=(0,r(13).filter)(t.adUnitsStorage,(function(t){return t.code===e}));void 0!==n&&0!==n.length?this.callBids(n):(0,r(28).consoleWarn)("No adUnit for such container code")},e.prototype.callBids=function(e){var t=(0,r(9).isArray)(e)?e:[e];t.length>0&&(r(12).adapterManager.callBids(t,this.timeout),(0,r(1).forEach)(t,(function(e){var t=r(6).bidManager.getAdUnitBox(e.code);t&&t.timeoutToRequest||(t=new(r(582).AdUnitBox)({adUnit:e}),r(6).bidManager.addAdUnitBox(e.code,t),t.waitBids().then((function(e){return r(6).bidManager.resolveBids(e)})))})))},e.prototype.hasOneOfAdUnits=function(e){return!!(0,r(9).isArray)(e)&&(0,r(46).some)(t.adUnitsStorage,(function(t){return e.indexOf(t.code)>-1}))},e.prototype.fetchBids=function(e){if(!(0,r(9).isArray)(e))return Promise.resolve([]);for(var t=[],n=0;n<e.length;n++){if(e[n].containerId&&e[n].adBreakType){var o=this.fetchBidsByContainerId(e[n].containerId,e[n].adBreakType);t.push(o)}}return Promise.all(t)["catch"]((function(t){return(0,r(25).errorStrict)("HB_FETCH_BIDS_REQUEST_ERROR",{error:t}),Promise.resolve((0,r(11).map)(e,r(56).createEmptyFetchedBids))}))},e.prototype.fetchBidsByContainerId=function(e,t){var n=this;if(!(void 0===t||(0,r(46).some)(r(179).SupportedAdBreakTypes,(function(e){return e===t}))||"inpage"===t))return(0,r(28).consoleWarn)("Incorrect adBreakType ".concat(t)),Promise.resolve((0,r(56).createEmptyFetchedBids)());var o=this.getAdUnitByCodeType(e,t);return void 0===o||0===o.length?((0,r(28).consoleWarn)("No adUnit for such ".concat(e)),Promise.resolve((0,r(56).createEmptyFetchedBids)())):(this.callBids(o),new Promise((function(t){n.getBidsForAdfoxByContainerId(e,(function(){var e=r(6).bidManager.getRawLastBids(),o={},i={},a=[];(0,r(1).forEach)(e,(function(e){var t=n.getBidCreative(e);t&&(t.type===r(0).BannerSource.CODE?o[e.campaignId]=t.creative:i[e.campaignId]=t.creative),a.push((0,r(56).buildBidForAdfox)(e))})),t({bids:a,creatives:o,creativeUrls:i})}))})))},e.prototype.getBidCreative=function(e){if(e instanceof r(0).BannerBid)return{creative:e.banner.src,type:e.banner.sourceType};if(e instanceof r(0).AdfoxBid){if(e.creative.attributes.vastBase64)return{creative:e.creative.attributes.vastBase64,type:r(0).BannerSource.CODE};if(e.creative.attributes.vastUrl)return{creative:e.creative.attributes.vastUrl,type:r(0).BannerSource.URL}}return null},e.prototype.getBannerAdUnits=function(e,o){var i=(0,r(13).filter)(t.adUnitsStorage,(function(t){return t.code===e}));return 0===i.length?[]:(0,r(13).filter)((0,r(11).map)(i,(function(e){return"instream"===e.codeType?null:n(n({},e),{codeType:o})})),(function(e){return null!==e}))},e.prototype.getInstreamAdUnits=function(e,o){var i=(0,r(13).filter)(t.adUnitsStorage,(function(t){return t.code===e}));if(0===i.length)return[];return(0,r(13).filter)((0,r(11).map)(i,(function(e){if("instream"===e.codeType){var t=function(e){return(0,r(13).filter)(e,(function(e){return(0,r(9).isArray)(e.adBreakTypes)&&(0,r(46).some)(e.adBreakTypes,(function(e){return o===e}))}))}(e.bids);if(t.length>0)return n(n({},e),{codeType:o,bids:t})}return null})),(function(e){return null!==e}))},e.prototype.getAdUnitByCodeType=function(e,t){switch(t){case void 0:case"inpage":return this.getBannerAdUnits(e,t);case"preroll":case"midroll":case"postroll":return this.getInstreamAdUnits(e,t);default:return[]}},e.prototype.addCallbacks=function(e){var t=(void 0===e?{}:e).onBidsReceived;(0,r(3).isFunction)(t)&&r(6).bidManager.addUserCallback(t)},e.prototype.getAdunitsValidationLog=function(){return this.validator.getLog()},e.prototype.setSyncPixels=function(e){r(12).adapterManager.setSyncPixels(e)},e.prototype.getTrustedOwners=function(){var e,t=null===(e=this.settings)||void 0===e?void 0:e.trustedOwners;return(0,r(9).isArray)(t)?t:[]},e}();t.HBManager=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdUnitsValidator=void 0;var n=function(){function e(){this.log=[]}return e.prototype.validate=function(e){this.createNewSession(),e=(0,r(9).isArray)(e)?e:[e];var t=this.checkStructure(e),n=this.correctAdUnitsBidderNames(t),o=this.filterSimilarElementIds(n),i=this.filterSimilarBidderNames(o),a=this.filterSimilarBidderIds(i);return this.filterAdUnitsByCodeTypes(a)},e.prototype.createNewSession=function(){this.log.push({date:new Date,errors:[]})},e.prototype.getLastSession=function(){return this.log[this.log.length-1]},e.prototype.getLog=function(){return this.log},e.prototype.getMessage=function(){return(0,r(11).map)(this.getLog(),(function(e){var t=e.errors;return(0,r(11).map)(t,(function(e){var t=e.message;return"".concat(t," ").concat("It was excluded from HB config!")})).join("\n")})).join("\n")},e.prototype.isLastValidationWithErrors=function(){return this.getLastSession().errors.length>0},e.prototype.checkStructure=function(e){var t=this;return(0,r(178).checkAdUnitsStructure)(e,(function(e){return t.addError(r(55).validationErrors.wrongStructure,e.code)}))},e.prototype.filterSimilarBidderNames=function(e){var t=this;return(0,r(13).filter)(e,(function(e){var n=e.bids,o=e.code,i=(0,r(11).map)(n,(function(e){return e.bidder})),a=(0,r(34).every)(i,(function(e,t,r){return r.indexOf(e)===t}));return a||t.addError(r(55).validationErrors.similarBidderNames,o),a}))},e.prototype.filterSimilarBidderIds=function(e){var t=this;return(0,r(13).filter)(e,(function(e){return t.hasAdunitSimilarBidderIds(e)}))},e.prototype.hasAdunitSimilarBidderIds=function(e){var t=this,n=e.bids,o=e.code,i={};return(0,r(34).every)(n,(function(e){for(var n=e.params,a=0;a<r(178).BidParamsKeys.length;a++){var s=n[r(178).BidParamsKeys[a]];if(void 0!==s){if(i[s])return t.addError(r(55).validationErrors.similarBidderIds,o,r(178).BidParamsKeys[a],s),!1;i[s]=!0}}return!0}))},e.prototype.filterSimilarElementIds=function(e){var t=this,n=this.createMapCodeToUnit(e);return(0,r(13).filter)((0,r(11).map)(Object.keys(n),(function(e){return 1===n[e].length?n[e][0]:void t.addError(r(55).validationErrors.similarElementIds,e)})),Boolean)},e.prototype.filterAdUnitsByCodeTypes=function(e){var t=this;return(0,r(13).filter)(e,(function(e){switch(e.codeType){case void 0:case"inpage":case"combo":return!!t.checkAdBreakTypesUndefined(e)||(t.addError(r(55).validationErrors.unnecessaryAdBreakTypes,e.code,e.codeType||"undefined"),!1);case"instream":return!!t.checkCorrectAdBreakTypes(e);default:return t.addError(r(55).validationErrors.unsupportedCodeType,e.code,e.codeType),!1}}))},e.prototype.checkAdBreakTypesUndefined=function(e){return(0,r(34).every)(e.bids,(function(e){return void 0===e.adBreakTypes}))},e.prototype.checkCorrectAdBreakTypes=function(e){var t=this;return(0,r(34).every)(e.bids,(function(n){return(0,r(9).isArray)(n.adBreakTypes)?0===n.adBreakTypes.length?(t.addError(r(55).validationErrors.adBreakTypesIsEmpty,e.code,n.bidder),!1):(0,r(34).every)(n.adBreakTypes,(function(o){return r(179).SupportedAdBreakTypes.indexOf(o)>-1||(t.addError(r(55).validationErrors.adBreakTypeIsNotCorrect,e.code,n.bidder,o,r(179).SupportedAdBreakTypes.toString()),!1)})):(t.addError(r(55).validationErrors.adBreakTypesIsNotArray,e.code,n.bidder),!1)}))},e.prototype.correctAdUnitsBidderNames=function(e){return(0,r(1).forEach)(e,(function(e){(0,r(1).forEach)(e.bids,(function(e){(0,r(140).isAdfoxBidder)(e.bidder)||(e.bidder=e.bidder.toLowerCase())}))})),e},e.prototype.addError=function(e){for(var t=e.code,n=e.message,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];this.getLastSession().errors.push({code:t,message:(0,r(55).templateErrorMessage)(n,o)})},e.prototype.createMapCodeToUnit=function(e){return(0,r(71).reduce)(e,(function(e,t){return e[t.code]?e[t.code].push(t):e[t.code]=[t],e}),{})},e}();t.AdUnitsValidator=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareLastBidsReceived=void 0;t.prepareLastBidsReceived=function(e){return(0,r(11).map)(e,(function(e){var t={adapterName:e.adapterName,containerId:e.containerId,campaignId:e.campaignId,requestDuration:e.requestDuration};return e instanceof r(0).BannerBid?(t.banner={src:e.banner&&e.banner.src},t.cost={cpm:e.cost&&e.cost.cpm,currency:e.cost&&e.cost.currency}):e instanceof r(0).NativeBid?(t["native"]={nativePayload:e.nativePayload},t.cost={cpm:e.cost&&e.cost.cpm,currency:e.cost&&e.cost.currency}):e instanceof r(0).BidError&&(t.error={code:e.errorCode}),t}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HBPostMessageListener=void 0;var n=function(){function e(e,t){var n=this;this.hbManager=t,(0,r(309).addEventListener)(e,"message",(function(e){return n.handleEvent(e)}))}return e.prototype.handleEvent=function(e){var t=e.data||{},n=t.id,o=t.methodName;if((0,r(15).isString)(n))switch(o){case"FetchBids":return void this.fetchBids(e);default:return}},e.prototype.fetchBids=function(e){var t=e.data||{},n=t.id,o=t.data;if((0,r(9).isArray)(o)&&e.source&&this.hbManager.hasOneOfAdUnits((0,r(11).map)(o,(function(e){return e.containerId})))){var i=2*this.hbManager.getRequestTimeout(),a=setTimeout((function(){(0,r(25).errorStrict)("HB_FETCH_BIDS_REQUEST_TIMEOUT")}),i),s={id:n,methodName:"FetchBidsStart",data:{timeout:i}};e.source.postMessage(s,"*"),this.hbManager.fetchBids(o).then((function(t){clearTimeout(a);var r={id:n,methodName:"FetchBidsComplete",data:t};e.source.postMessage(r,"*")}))}},e}();t.HBPostMessageListener=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var n=[r(7).ADAPTER_NAMES.CRITEO,r(7).ADAPTER_NAMES.RTBHOUSE,r(7).ADAPTER_NAMES.MAIL,r(7).ADAPTER_NAMES.VIDEONOW,r(7).ADAPTER_NAMES.GNEZDO],o=function(e){var t=e.container,o=e.adapterName,i=e.win;if(!(0,r(70).includes)(n,o)){var a=t.style.position;if("static"!==a){""===a&&(t.style.position="relative");var s=i.document.createElement("div");s.innerHTML=o.toUpperCase(),s.style.display="block",s.style.position="absolute",s.style.top="1px",s.style.left="1px",s.style.padding="3px 4px",s.style.font="400 normal 9px/1.2 sans-serif",s.style.color="#161616",s.style.background="rgba(255,255,255,0.85)",s.style.opacity="0.8",s.style.border="none",s.style.borderRadius="0 0 2px",s.style.pointerEvents="none",t.appendChild(s),t.addEventListener("mouseenter",(function(){s.style.display="none"})),t.addEventListener("mouseleave",(function(){s.style.display="block"}))}}},i=function(e){var t=document.createElement("iframe");return t.setAttribute("height","".concat(e.height)),t.setAttribute("width","".concat(e.width)),t.setAttribute("marginwidth","0"),t.setAttribute("marginheight","0"),t.setAttribute("frameborder","0"),t},a=function(e){return'<script src="'.concat(e,'"><\/script>')},s=function(e){var t='<iframe width="100%" height="100%" src="'.concat(e,'" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');return'<html style="width: 100%; height: 100%;"><head></head><body style="width: 100%; height: 100%;">'.concat(t,"</body></html>")};t.render=function(e){var t=e.win,n=e.container,c=e.bid,d=e.callbacks,u=void 0===d?{}:d,p=u.onError,f=void 0===p?function(){}:p,l=u.onRender,h=void 0===l?function(){}:l,v=u.onAdfoxBid,y=void 0===v?function(e,t){}:v,g=u.initSf,m=void 0===g?r(149).initSafeframe:g,b=u.confirm,A=void 0===b?r(145).report:b;if(!(c instanceof r(0).BidError)){var E=c.adapterName.indexOf("adfox")<0?c.adapterName:"adfox",_=function(){return(0,r(25).errorStrict)("HB_RENDERED",{bidder:E})},B=function(){_(),h()};if(c instanceof r(0).NativeBid)!function(e,t){(0,e.nativeCallback)(e.nativePayload),t()}(c,B);else{if(c instanceof r(0).AdfoxBid)return A(c.winNotice),void y(c.creative,{onRender:_});var T=c.banner,M=T.src,S=T.type,O=T.sourceType;if(S===r(0).BannerType.VAST){var R={campaignId:String(c.campaignId)};return c.banner.sourceType===r(0).BannerSource.CODE?R.vastBase64=c.banner.src:c.banner.sourceType===r(0).BannerSource.URL&&(R.vastUrl=c.banner.src),void y({type:"banner.inpage",attributes:R},{onRender:_})}var w=c.size,P=w.width>0&&w.height>0;if(O===r(0).BannerSource.URL)return P?(function(e){var t=e.win,r=e.container,n=e.html,o=e.size,i=o.width,a=o.height,s=e.callbacks,c=e.logRender,d={width:i,height:a,html:n};(0,e.initSf)(t,function(e,t,r){var n=e.ownerDocument.createElement("div"),o=e.ownerDocument.createElement("div");return n.style.width="".concat(t,"px"),n.style.height="".concat(r,"px"),n.style.margin="0 auto",n.appendChild(o),e.appendChild(n),o}(r,i,a),d,s.onError,s.onRender,void 0,"referrer=".concat(window.location.href)),c()}({win:t,container:n,html:S===r(0).BannerType.JS?a(M):s(M),size:w,callbacks:{onError:f,onRender:h},logRender:_,initSf:m}),void o({container:n,win:t,adapterName:c.adapterName})):void(S===r(0).BannerType.JS?function(e,t,r){var n=document.createElement("script");n.src=t,e.appendChild(n),r()}(n,M,B):(!function(e,t,r,n){var o=i(r);o.src=t,e.appendChild(o),n()}(n,M,w,B),o({container:n,win:t,adapterName:c.adapterName})));S===r(0).BannerType.JS?function(e,t,r){var n=document.createElement("script");n.innerHTML=t,e.appendChild(n),r()}(n,M,B):(!function(e,t,r,n){var o=i(r);e.appendChild(o);var a=o.contentDocument;a.open(),a.write(t),a.close(),n()}(n,M,w,B),o({container:n,win:t,adapterName:c.adapterName}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=void 0;t.flatten=function e(t){return(0,r(71).reduce)(t,(function(t,n){return t.concat((0,r(9).isArray)(n)?e(n):n)}),[])}},function(e,t,r){var n={"./adfoxAdapter.ts":546,"./admixerAdapter.ts":547,"./adspendAdapter.ts":548,"./adtelligentAdapter.ts":549,"./aioAdapter.ts":550,"./alfasenseAdapter.ts":551,"./astralabAdapter.ts":552,"./betweenDigitalAdapter.ts":553,"./bidvolAdapter.ts":554,"./buzzoolaAdapter.ts":555,"./clioAdapter.ts":556,"./criteoAdapter.ts":557,"./dgtSspAdapter.ts":558,"./facebookAdapter.ts":559,"./fotostranaAdapter.ts":560,"./getintentAdapter.ts":561,"./gnezdoAdapter.ts":562,"./hpmdAdapter.ts":563,"./hybridAdapter.ts":564,"./kadamAdapter.ts":565,"./mailAdapter.ts":566,"./maximaTelecomAdapter.ts":567,"./mediaTodayAdapter.ts":568,"./mgidAdapter.ts":569,"./mitAdapter.ts":570,"./mtsAdapter.ts":571,"./otmAdapter.ts":572,"./pladformAdapter.ts":573,"./redllamaAdapter.ts":574,"./relapAdapter.ts":575,"./rtbhouseAdapter.ts":576,"./sapeAdapter.ts":577,"./segmentoAdapter.ts":578,"./solowayAdapter.ts":579,"./tinkoffAdapter.ts":580,"./videonowAdapter.ts":581};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=545},function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AdfoxAdapter=void 0;var s=r(7).ADAPTER_NAMES.ADFOX,c=function(e){function t(t){var r=e.call(this,t,s)||this;return r.biddersRequested=[],r.cookiesRecieved=!1,r}return o(t,e),t.prototype.callForCookies=function(e){var t=this;this.cookiesRecieved?e():(0,r(300).getMatchidManager)().waitForMatchIdCookie((function(r){t.matchIdCookies=r,t.cookiesRecieved=Boolean(t.matchIdCookies),t.cookiesRecieved&&e()}),100)},t.prototype.callBids=function(e,t){var r=this;if(this.biddersRequested.push(e),!t){var n=this.biddersRequested;this.biddersRequested=[],this.callForCookies((function(){var e=r.prepareRequestData(n),t=e.requests,o=e.bids,i=e.timeout;r.biddersRequested=[],r.sendMultiplePosts(t,o,i)}))}},t.prototype.prepareRequestData=function(e){var t=this,n={},o=[],a=[],s=(0,r(231).getBaseRequestParams)({win:this.win});(0,r(1).forEach)(e,(function(e){var c=e.bidderName,d=e.bids,u=e.timeout;o.push(u),a.push.apply(a,(0,r(11).map)(d,(function(e){return i(i({},e),{bidderName:c})}))),(0,r(1).forEach)(d,(function(e){var o=e.code,a=e.params,d=e.customDomain,u=i(i(i(i({},s),a),t.matchIdCookies),{ylv:"0."+r(104).loaderVersion}),p=(0,r(383).mapValues)(u,String),f=c.replace("adfox_","");n[f]=n[f]||[],n[f].push({id:o,bidder:f,parameters:p,customDomain:d})}))}));var c=(0,r(56).separateByDomain)(n),d=[],u=Math.max.apply(Math,o);return(0,r(1).forEach)(c,(function(e){d.push({meta:{session_id:String((0,r(173).getPr)()),request_id:String(Math.random())},jsonapi:{version:"1.0",meta:{protocol_version:"2.0"}},data:e,customDomain:e[0].customDomain})})),{requests:d,timeout:u,bids:a}},t.prototype.sendMultiplePosts=function(e,t,n){var o=this;this.log("HB_ADAPTER_SEND");var i=[],a=!1,s=function(){a=!0,(0,r(1).forEach)(c,(function(e){return e.abort()}))},c=e.map((function(e){var d=e.customDomain,u=d?"https://".concat(d,"/hb"):"https://ads.adfox.ru/hb";delete e.customDomain;var p=new(r(181).XhrForAdapter)({publisherTagUrl:u,data:e,timeout:n,callbacks:{onResponse:function(e){i.push(e),(0,r(34).every)(c,(function(e){return!e.isRequesting}))&&!a&&o.onResponse(i,t)},onError:function(e,r){a||(s(),o.log("HB_ADAPTER_REQUEST_ERROR",{status:r}),o.onError(e,t,r))},onTimeout:function(){a||(s(),o.onTimeout(t))}}});return p.sendXhr(),p}))},t.prototype.onResponse=function(e,t){try{var n={data:[],errors:[]};(0,r(1).forEach)(e,(function(e){var t=r.lv["json"].parse(e),o=t.data,i=t.errors;o&&(n.data=a(a([],n.data,!0),o,!0)),i&&(n.errors=a(a([],n.errors,!0),i,!0))})),this.processResponse(n,t)}catch(e){this.log("HB_ADAPTER_PARSE_ERROR"),this.onError(e.message,t,r(21).ERRORS.INVALID_RESPONSE.code)}},t.prototype.processResponse=function(e,t){var n=this,o=e.data,i=e.errors;(0,r(1).forEach)(t,(function(e){var t=e.bidderName,a=e.code;if(i&&(0,r(60).find)(i,(function(e){var r=e.id,n=e.bidder;return r===a&&"adfox_".concat(n)===t})))n.createErrorBid(e,r(21).ERRORS.NO_RESPONSE.code);else{var s=(0,r(60).find)(o,(function(e){var r=e.id,n=e.bid.bidder;return r===a&&"adfox_".concat(n)===t}));if(s){var c=s.id,d=s.type,u=s.attributes,p=s.bid,f=p.win_notice,l=p.cpm,h=n.bidManager.createNewAdfoxBid(t,c);void 0!==l?h.setCost({price:l,unit:r(80).Units["1-TH"]}):h.setCost({price:1,unit:r(80).Units["1-TH"]}),h.creative={type:d,attributes:u},h.winNotice=f,h.placementId=e.params.placementId,n.bidManager.addBidResponse(h)}else n.createErrorBid(e,r(21).ERRORS.NO_RESPONSE_WITHOUT_STATUS.code)}}))},t}(r(182).Adapter);t.AdfoxAdapter=c,r(12).adapterManager.registerBidAdapter(new c(r(6).bidManager),s)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.ADMIXER;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"inv-nets.admixer.net/afprebid.aspx",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.ADSPEND;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"rtb.com.ru/adfox-bid",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.ADTELLIGENT;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"hb.adtelligent.com/v3/auction",name:n,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.AIO;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"api.aio.media/v1/hb",name:n,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.ALFASENSE;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"pbs.alfasense.com/yandex/auction",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.ASTRALAB;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ssp.afp.ai/api/adfox/bids",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager,sendTargetRef:!0}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.BETWEEN_DIGITAL;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ads.betweendigital.com/adjson?t=adfox",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager,sendTargetRef:!0}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.BIDVOL;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ssp.bidvol.com/rtb/pl999",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.BUZZOOLA;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"exchange.buzzoola.com/ssp/adfox",name:n,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.CLIO;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ag.adgear.ru/hb",name:n,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7).ADAPTER_NAMES.CRITEO,a=function(e){function t(t){var r=e.call(this,t,i)||this;return r.publisherTagUrl="".concat(r.protocol).concat("static.criteo.net/js/ld/publishertag.js"),r.scriptWasRequested=!1,r}return o(t,e),t.prototype.callBids=function(e){this.pushBidRequestEvent(e),this.loadScript(e)},t.prototype.loadScript=function(e){var t=this,n=e.bids;this.win.criteo_pubtag&&!(0,r(9).isArray)(this.win.criteo_pubtag)||this.scriptWasRequested||(this.scriptWasRequested=!0,(0,r(207).loadScriptLite)({win:this.win,src:this.publisherTagUrl,onError:function(e){t.onError(e.message,n,r(21).ERRORS.HTTP_ERROR.code)}}))},t.prototype.pushBidRequestEvent=function(e){var t=this,r=e.timeout,n=e.bids;this.win.Criteo=this.win.Criteo||{},this.win.Criteo.events=this.win.Criteo.events||[];var o=this.win.Criteo,i=this.buildRequestAdUnits(n);this.log("HB_ADAPTER_SEND"),o.events.push((function(){return t.win.Criteo.RequestBids(i,(function(e,r){t.onResponse(e,n,r)}),r)}))},t.prototype.buildRequestAdUnits=function(e){var t=[];return(0,r(1).forEach)(e,(function(e){var r=e.code,n=e.params,o=n.zoneid,i=n.placementId,a=n.nativeCallback,s=o||i||0;t.push({slotid:r,zoneid:Number(s),nativeCallback:a})})),{placements:t}},t.prototype.onResponse=function(e,t,n){try{this.processData(e,t,n)}catch(e){this.log("HB_ADAPTER_PARSE_ERROR"),this.onError(e.message,t,r(21).ERRORS.INVALID_RESPONSE.code)}},t.prototype.processData=function(e,t,n){void 0===n&&(n=200);var o,i=n,a="";if(200===i)if((0,r(28).consoleLog)("Received response from ".concat(this.name," with bids"),e),void 0===e)i=r(21).ERRORS.TIMEOUT.code,a="Timeout from ".concat(this.name),this.log("HB_ADAPTER_REQUEST_TIMEOUT"),o=t;else{if(e=this.cleanBids(e,t),!(t.length>e.length))return void this.createBidResponse(e);var s=(0,r(11).map)(e,(function(e){return e.impressionId})),c=(0,r(11).map)(t,(function(e){return e.code})),d=(0,r(13).filter)(c,(function(e){return-1===s.indexOf(e)}));o=(0,r(11).map)(d,(function(e){return function(e){return(0,r(13).filter)(t,(function(t){return t.code===e}))[0]}(e)})),i=r(21).ERRORS.NO_RESPONSE.code,a="Empty response from ".concat(this.name),this.createBidResponse(e)}else a="httpStatus ".concat(i," from ").concat(this.name),this.log("HB_ADAPTER_REQUEST_TIMEOUT",{status:i}),o=t;void 0!==o&&this.onError(a,o,i)},t.prototype.createBidResponse=function(e){var t=this;(0,r(1).forEach)(e,(function(e){var r=t.buildBidObject(e);t.bidManager.addBidResponse(r)}))},t.prototype.cleanBids=function(e,t){return this.cleanFromNotRequestedBids(this.cleanFromCachedBids(e),t)},t.prototype.cleanFromCachedBids=function(e){var t={},n=[];for(var o in(0,r(1).forEach)(e,(function(e){return t[e.impressionId]=e})),t)n.push(t[o]);return n},t.prototype.cleanFromNotRequestedBids=function(e,t){var n={},o=[];for(var i in(0,r(1).forEach)(t,(function(t){var o,i=t.code;return n[i]=(o=i,(0,r(13).filter)(e,(function(e){return e.impressionId===o}))[0])})),n)n[i]&&o.push(n[i]);return o},t.prototype.buildBidObject=function(e){var t,n=e.impressionId,o=e.cpm;if(function(e){return e&&Boolean(e.nativePayload)&&(0,r(3).isFunction)(e.nativeCallback)}(e)){t=this.bidManager.createNewNativeBid(this.name,n);var i=e.zoneId,a=e.nativeCallback,s=e.nativePayload;t.params={zoneid:i,status:d},t.placementId=i.toString(),t.nativeCallback=a,t.nativePayload=s}else{var c=e,d=(i=c.zoneId,c.status),u=c.width,p=c.height,f=c.creative,l=c.displayUrl;t=this.bidManager.createNewBannerBid(this.name,n),-1!==l.indexOf("/afr.php")?t.setBanner(l,{type:r(0).BannerType.HTML,sourceType:r(0).BannerSource.URL}):t.setBanner(l,{type:r(0).BannerType.JS,sourceType:r(0).BannerSource.URL}),t.setSize(u,p),t.params={zoneId:i,status:d,creative:f},t.placementId=void 0!==typeof i?i.toString():i}return t.setCost({price:o,unit:r(80).Units["1-TH"]}),t},t}(r(182).Adapter);t["default"]=a,r(12).adapterManager.registerBidAdapter(new a(r(6).bidManager),i)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.DGT_SSP;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ssp.ainads.ru/hbya",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FacebookAdapter=t.getTemplate=void 0;var a=r(7).ADAPTER_NAMES.FACEBOOK;t.getTemplate=function(e,t,r){return'\n    <html>\n        <body>\n            <div style="display:none; position: relative;">\n            <script type="text/javascript">\n                var data = {\n                placementid: \''.concat(e,"',\n                format: '").concat(t,"',\n                bidid: '").concat(r,'\',\n                testmode: false,\n                onAdLoaded: function(element) {\n                    element.style.display = \'block\';\n                },\n                onAdError: function(errorCode, errorMessage) {}\n                };\n            <\/script>\n            <script>\n                (function(a,b,c){var d="https://www.facebook.com",e="https://connect.facebook.net/en_US/fbadnw55.js",f={iframeLoaded:true,xhrLoaded:true},g=a.data,h=function(){if(Date.now)return Date.now();else return+new Date()},i=function(B){var C=d+"/audience_network/client_event",D={cb:h(),event_name:"ADNW_ADERROR",ad_pivot_type:"audience_network_mobile_web",sdk_version:"5.5.web",app_id:g.placementid.split("_")[0],publisher_id:g.placementid.split("_")[1],error_message:B},E=[];for(var F in D)E.push(encodeURIComponent(F)+"="+encodeURIComponent(D[F]));var G=C+"?"+E.join("&"),H=new XMLHttpRequest();H.open("GET",G,true);H.send();if(g.onAdError)g.onAdError("1000","Internal error.")},j=function(){if(b.currentScript)return b.currentScript;else{var B=b.getElementsByTagName("script");return B[B.length-1]}},k=function(B){try{return B.document.referrer}catch(C){}return""},l=function(){var B=a,C=[B];try{while(B!==B.parent&&B.parent.document)C.push(B=B.parent)}catch(D){}return C.reverse()},m=function(){var B=l();for(var C=0;C<B.length;C++){var D=B[C],E=D.ADNW||{};D.ADNW=E;if(!D.ADNW)continue;return E.v55=E.v55||{ads:[],window:D}}throw new Error("no_writable_global")},n=function(B){var C=B.indexOf("/",B.indexOf("://")+3);if(C===-1)return B;return B.substring(0,C)},o=function(B){return B.location.href||k(B)},p=function(B){if(B.sdkLoaded)return;var C=B.window.document,D=C.createElement("iframe");D.name="fbadnw";D.style.display="none";D.onload=function(){var E=D.contentDocument.createElement("script");E.src=e;E.async=true;D.contentDocument.body.appendChild(E)};C.body.appendChild(D);B.sdkLoaded=true},q=function(B){var C=/^https?:\\/\\/www\\.google(\\.com?)?.\\w{2,3}$/;return!!B.match(C)},r=function(B){return!!B.match(/cdn.ampproject.org$/)},s=function(){var B=c.ancestorOrigins||[],C=B[B.length-1]||c.origin,D=B[B.length-2]||c.origin;if(q(C)&&r(D))return n(D);else return n(C)},t=function(B){try{return JSON.parse(B)}catch(A){i(A.message);throw A}},u=function(B,C,D){if(!B.iframe){var E=D.createElement("iframe");E.src=d+"/audiencenetwork/iframe/";E.style.display="none";D.body.appendChild(E);B.iframe=E;B.iframeAppendedTime=h();B.iframeData={}}C.iframe=B.iframe;C.iframeData=B.iframeData;C.tagJsIframeAppendedTime=B.iframeAppendedTime||0},v=function(B){var C=d+"/audiencenetwork/xhr/?sdk=5.5.web";for(var D in B)if(typeof B[D]!=="function")C+="&"+D+"="+encodeURIComponent(B[D]);var E=new XMLHttpRequest();E.open("GET",C,true);E.withCredentials=true;E.onreadystatechange=function(){if(E.readyState===4){var F=t(E.response);B.events.push({name:"xhrLoaded",source:B.iframe.contentWindow,data:F,postMessageTimestamp:h(),receivedTimestamp:h()})}};E.send()},w=function(B,C){var D=d+"/audiencenetwork/xhriframe/?sdk=5.5.web";for(var E in C)if(typeof C[E]!=="function")D+="&"+E+"="+encodeURIComponent(C[E]);var F=b.createElement("iframe");F.src=D;F.style.display="none";b.body.appendChild(F);C.iframe=F;C.iframeData={};C.tagJsIframeAppendedTime=h()},x=function(B){var C=function(event){try{var E=event.data;if(E.name in f)B.events.push({name:E.name,source:event.source,data:E.data})}catch(A){}},D=B.iframe.contentWindow.parent;D.addEventListener("message",C,false)},y=function(a){if(a.context&&a.context.sourceUrl)return true;try{return!!JSON.parse(decodeURI(a.name)).ampcontextVersion}catch(A){return false}},z=function(B){var C=h(),D=l()[0],E=j().parentElement,F=D!=a.top,G=D.$sf&&D.$sf.ext,H=o(D),I=m();p(I);var J={amp:y(D),events:[],tagJsInitTime:C,rootElement:E,iframe:null,tagJsIframeAppendedTime:I.iframeAppendedTime||0,url:H,domain:s(),channel:n(o(D)),width:screen.width,height:screen.height,pixelratio:a.devicePixelRatio,placementindex:I.ads.length,crossdomain:F,safeframe:!!G,placementid:g.placementid,format:g.format||"300x250",testmode:!!g.testmode,onAdLoaded:g.onAdLoaded,onAdError:g.onAdError};if(g.bidid)J.bidid=g.bidid;if(F||!c.ancestorOrigins)w(I,J);else{u(I,J,D.document);v(J)}x(J);J.rootElement.dataset.placementid=J.placementid;I.ads.push(J)};try{z()}catch(A){i(A.message||A);throw A}})(window,document,location);\n            <\/script>\n            </div>\n        </body>\n    </html>\n')};var s=function(e){function n(t){var n=e.call(this,t,a)||this;return n.containerIdsMap={},n.publisherTagUrl=(0,r(31).addParamsToUrl)("".concat(n.protocol).concat("an.facebook.com/v2/placementbid.json"),{sdk:"5.5.web",testmode:String(!1)}),n}return o(n,e),n.prototype.callBids=function(e){this.publisherTagUrl=this.prepareUrl(this.publisherTagUrl,e),this.sendGet(e)},n.prototype.sendGet=function(e){var t=this,n=e.timeout,o=e.bids;this.log("HB_ADAPTER_SEND"),new(r(181).XhrForAdapter)({publisherTagUrl:this.publisherTagUrl,method:r(78).Methods.GET,timeout:n,callbacks:{onResponse:function(e){return t.onResponse(e,o)},onError:function(e,r){t.log("HB_ADAPTER_REQUEST_ERROR",{status:r}),t.onError(e,o,r)},onTimeout:function(){return t.onTimeout(o)}}}).sendXhr()},n.prototype.onResponse=function(e,t){try{var n=r.lv["json"].parse(e);this.processData(n,t)}catch(e){this.log("HB_ADAPTER_PARSE_ERROR"),this.onError(e.message,t,r(21).ERRORS.INVALID_RESPONSE.code)}},n.prototype.getRequestedBidNames=function(e){return(0,r(11).map)(e,(function(e){return e.code}))},n.prototype.getResponsedBidNames=function(e){var t=this;return(0,r(11).map)(Object.keys(e),(function(e){return t.getContainerById(e).code}))},n.prototype.getDiffBidNames=function(e,t){return(0,r(13).filter)(e,(function(e){return t.indexOf(e)<0}))},n.prototype.sortRequestedBidsByNames=function(e,t){return(0,r(13).filter)(e,(function(e){return t.indexOf(e.code)>=0}))},n.prototype.filterErrorBids=function(e,t){var r=this.getRequestedBidNames(t),n=this.getResponsedBidNames(e),o=this.getDiffBidNames(r,n);return this.sortRequestedBidsByNames(t,o)},n.prototype.processData=function(e,t){var n=e.bids;if(n){var o=this.filterErrorBids(n,t);this.createBidResponse(n,t),this.createErrorBids(o,r(21).ERRORS.NO_RESPONSE.code)}},n.prototype.responsedBidToRequested=function(e,t){var n=this.getContainerById(e.placement_id).code;return(0,r(13).filter)(t,(function(e){return n===e.code}))[0]},n.prototype.createBidResponse=function(e,t){var n=this;(0,r(19).forOwn)(e,(function(e){var o=e[0];if("cpm"===o.bid_price_model){var i=n.buildBidObject(o);n.bidManager.addBidResponse(i)}else{var a=n.responsedBidToRequested(o,t);n.createErrorBid(a,r(21).ERRORS.WRONG_SETTINS.code)}}))},n.prototype.buildBidObject=function(e){var n=this.getContainerById(e.placement_id),o=n.sizes,a=n.code,s=this.bidManager.createNewBannerBid(this.name,a),c=e.bid_price_cents/100;s.setCost({price:c,unit:r(80).Units["1-TH"],currency:r(80).Currency.USD});var d=(0,t.getTemplate)(e.placement_id,this.prepareSize(o),e.bid_id);if(s.setBanner(d,{type:r(0).BannerType.HTML,sourceType:r(0).BannerSource.CODE}),o){var u=o[0],p=u[0],f=u[1];s.setSize(p,f)}else s.setSize(-1,-1);return s.placementId=e.placement_id,s.params=i({},e),s},n.prototype.saveContainerById=function(e,t){this.containerIdsMap[e]=t},n.prototype.getContainerById=function(e){return this.containerIdsMap[e]},n.prototype.prepareUrl=function(e,t){var n=this,o=t.bids,i={placementids:[],adformats:[]};return(0,r(1).forEach)(o,(function(e){if(e.params.placementId){var t=e.sizes,r=e.code,o=e.params.placementId;n.saveContainerById(o,{sizes:t,code:r}),i.placementids.push(o),i.adformats.push(n.prepareSize(t))}})),(0,r(31).addParamsToUrl)(e,i)},n.prototype.prepareSize=function(e){if(e){var t=e[0],r=t[0],n=t[1];return"".concat(r,"x").concat(n)}return""},n}(r(182).Adapter);t.FacebookAdapter=s,r(12).adapterManager.registerBidAdapter(new s(r(6).bidManager),a)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.FOTOSTRANA;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"king.fotostrana.ru/get/gp",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.GET_INTENT;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"px.adhigh.net/rtb/yandex_hb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.GNEZDO;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"fcgi4.gnezdo.ru/hb/Yandex/",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"banner.hpmdnetwork.ru/bidder/request",name:r(7).ADAPTER_NAMES.HPMD,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),r(7).ADAPTER_NAMES.HPMD)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.HYBRID;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"hbe199.hybrid.ai/adfoxhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"kdmttk.com/get_data?format=adfox",name:r(7).ADAPTER_NAMES.KADAM,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),r(7).ADAPTER_NAMES.KADAM)},function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MailAdapter=void 0;var i=function(e){function t(t){return e.call(this,{bidManager:t,url:"ad.mail.ru/hbid_yandex/",name:r(7).ADAPTER_NAMES.MAIL,bannerType:r(0).BannerType.HTML})||this}return o(t,e),t.prototype.assignAdditionalParams=function(t,r){e.prototype.assignAdditionalParams.call(this,t,r),void 0!==r.pos&&(t.pos=r.pos)},t}(r(14).AdapterForNew);t.MailAdapter=i,r(12).adapterManager.registerBidAdapter(new i(r(6).bidManager),r(7).ADAPTER_NAMES.MAIL)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.QVANT_DSP;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"d.wi-fi.ru/b/v1/ya/hb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.MEDIATODAY;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"mediatoday.ru/core/rtb/hb/bid",name:n,bannerType:r(0).BannerType.JS,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.MGID;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"prebid.mgid.com/adfoxhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.MIT;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"mitdsp.whiteboxdigital.ru/adfoxhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.MTS;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"dsp.rtb.mts.ru/bidder",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.OTM;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"yhb.p.otm-r.com/yhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.PLADFORM;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"adx.pladform.ru/engine/adx/koxPA7PL",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.REDLLAMA;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"redllama.ru/core/headbidd",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"relap.io/hb/adfox/bid",name:r(7).ADAPTER_NAMES.RELAP,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),r(7).ADAPTER_NAMES.RELAP)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"adfox-c2s-ams.creativecdn.com/bidder/adfox/bids",name:r(7).ADAPTER_NAMES.RTBHOUSE,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),r(7).ADAPTER_NAMES.RTBHOUSE)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.SAPE;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ssp-rtb.sape.ru/adfoxhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.SEGMENTO;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"adfox-hb-bidder.rutarget.ru/bid",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";var n,o=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(7).ADAPTER_NAMES.SOLOWAY,s=function(e){function t(t){var r=e.call(this,t,a)||this;return r.publisherTagUrl="".concat(r.protocol).concat("pb.adriver.ru/cgi-bin/bid.cgi"),r.containerDataMap={},r}return o(t,e),t.prototype.callBids=function(e){var t=this.getData(e);t.imp.length?this.sendPost(t,e):this.createErrorBids(e.bids,r(21).ERRORS.INVALID_DATA.code)},t.prototype.sendPost=function(e,t){var n=this,o=t.timeout,i=t.bids;this.log("HB_ADAPTER_SEND"),new(r(181).XhrForAdapter)({publisherTagUrl:this.publisherTagUrl,data:e,timeout:o,callbacks:{onResponse:function(e){return n.onResponse(e,i)},onError:function(e,t){n.log("HB_ADAPTER_REQUEST_ERROR",{status:t}),n.onError(e,i,t)},onTimeout:function(){return n.onTimeout(i)}}}).sendXhr()},t.prototype.onResponse=function(e,t){try{var n=r.lv["json"].parse(e);this.processData(n,t)}catch(e){this.log("HB_ADAPTER_PARSE_ERROR"),this.onError(e.message,t,r(21).ERRORS.INVALID_RESPONSE.code)}},t.prototype.processData=function(e,t){var n,o=this,i=e.seatbid,a=200,s="";if((0,r(28).consoleLog)("Received response from ".concat(this.name," with bids"),i),void 0===i||"{}"===r.lv["json"].stringify(i))n=t,a=r(21).ERRORS.NO_RESPONSE.code;else{if(t.length===i.length)return void this.createBidResponse(i);var c=(0,r(11).map)(i,(function(e){var t=e.bid[0];return o.getContainerId(t)})),d=(0,r(11).map)(t,(function(e){return e.code})),u=(0,r(13).filter)(d,(function(e){return c.indexOf(e)<0}));n=(0,r(11).map)(u,(function(e){return(0,r(13).filter)(t,(function(t){return t.code===e}))[0]})),a=r(21).ERRORS.NO_RESPONSE.code,s="Empty response from ".concat(this.name),this.createBidResponse(i)}void 0!==n&&((0,r(28).consoleWarn)(s),this.createErrorBids(n,a))},t.prototype.getContainerId=function(e){return this.containerDataMap[e.impid]?this.containerDataMap[e.impid].code:""},t.prototype.getContainerType=function(e){return this.codeTypeToBannerType(this.containerDataMap[e.impid].codeType)},t.prototype.codeTypeToBannerType=function(e){switch(e){case"inpage":case"preroll":case"midroll":case"postroll":return r(0).BannerType.VAST;default:return r(0).BannerType.HTML}},t.prototype.createBidResponse=function(e){var t=this;(0,r(1).forEach)(e,(function(e){var r=e.bid,n=t.buildBidObject(r[0]);t.bidManager.addBidResponse(n)}))},t.prototype.buildBidObject=function(e){var t=this.bidManager.createNewBannerBid(a,this.getContainerId(e));return t.setCost({price:e.price,unit:r(80).Units["1-TH"]}),t.setBanner(e.nurl,{type:this.getContainerType(e),sourceType:r(0).BannerSource.URL}),t.setSize(e.w,e.h),t.params=i({},e),t.placementId=e.impid,t},t.prototype.formPlaceBanner=function(e){return{w:0,h:0,format:null==e?void 0:e.map((function(e){return{w:e[0],h:e[1]}}))}},t.prototype.formPlaceVideo=function(e,t){var r="inpage"===t?3:1;return{w:e[0],h:e[1],api:[1,2],linearity:1,maxduration:120,mimes:["video/mp4","application/javascript","video/webm","video/mpg"],minduration:1,placement:r,protocols:[1,2,3,4,5,6]}},t.prototype.getData=function(e){var t=this,n=[],o="";return(0,r(1).forEach)(e.bids,(function(e){var i=e.params.siteid||e.params.placementId;if(i){t.containerDataMap[i]={code:e.code,codeType:e.params&&e.params.codeType};var a=e.sizes&&e.sizes[0]||[0,0],s={id:i,bidfloor:0,bidfloorcur:"RUB",secure:"https:"===document.location.protocol?1:0};switch(t.codeTypeToBannerType(e.params.codeType)){case r(0).BannerType.VAST:s.video=t.formPlaceVideo(a,e.params.codeType);break;default:s.banner=t.formPlaceBanner(e.sizes)}n.push(s),o=i}})),{cur:["RUB"],site:{name:location.origin,domain:location.host,id:o,page:location.href},id:Math.random().toString(),user:{buyerid:0},device:{ua:navigator.userAgent,ip:"1"},imp:n,at:1}},t}(r(182).Adapter);t["default"]=s,r(12).adapterManager.registerBidAdapter(new s(r(6).bidManager),a)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"ssp.datamind.ru/v2/yhb",name:r(7).ADAPTER_NAMES.TINKOFF,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),r(7).ADAPTER_NAMES.TINKOFF)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7).ADAPTER_NAMES.VIDEONOW;r(12).adapterManager.registerBidAdapter(new(r(14).AdapterForNew)({url:"adx.videonow.ru/yhb",name:n,bannerType:r(0).BannerType.HTML,bidManager:r(6).bidManager}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdUnitBox=void 0;var n=r(139).DEFAULT_TIMEOUT,o=function(){function e(e){this.adUnitBidders={},this.adUnit=e.adUnit,this.code=this.adUnit.code,this.timeoutToRequest=!1}return e.prototype.waitBids=function(){return this.waitingBids||this.initWaitingBids(),this.waitingBids},e.prototype.initWaitingBids=function(){var e,t,o,i=this;this.timeoutToRequest=!0,this.adUnitBidders=(e=this.code,t=r(64).biddersStorage.getBiddersRequested(),o={},(0,r(1).forEach)(t,(function(t){var n=t.bidderName,i=t.bids,a=(0,r(60).find)(i,(function(t){return e===t.code}));a&&(o[n]=function(e){var t=new(r(101).Deferred);return{request:e,deferred:t,response:t.promise}}(a))})),o);var a=(0,r(11).map)((0,r(36).getObjectKeys)(this.adUnitBidders),(function(e){return i.adUnitBidders[e].response}));this.waitingBids=Promise.all(a),this.waitingBids.then((function(e){i.receivedBids=e})),setTimeout((function(){i.timeoutToRequest=!1}),n)},e.prototype.resolveBid=function(e){var t=e.adapterName,r=this.adUnitBidders[t];e&&r&&r.deferred.resolve(e)},e.prototype.getBids=function(){return this.receivedBids||[]},e}();t.AdUnitBox=o}]);